LinHES Forums
http://forum.linhes.org/

Backup to USB disk drive.
http://forum.linhes.org/viewtopic.php?f=11&t=15312
Page 1 of 1

Author:  donhamilton [ Mon May 21, 2007 10:09 pm ]
Post subject:  Backup to USB disk drive.

I would like to backup my recordings to a USB harddrive.

Is this possible, and how do I transfer files to this drive.

thanks

donald

Author:  tjc [ Tue May 22, 2007 6:54 am ]
Post subject: 

Run the standard backup script to capture the DB and configuration state, then copy the whole /myth directory tree over to the other drive. I use a script like this:
Code:
root@black2:~# cat /root/scripts/back.sh
#!/bin/bash

#find / -name '*.orig' -print | xargs rm
find / -type f -name '*~' -print | xargs rm
find /myth/tmp -type f -print | xargs rm

/usr/local/bin/mythbackup &&
/usr/bin/rsync -av --delete /myth /backup

Note that /backup is the location where I've mounted the baqckup drive.

Author:  cjd1 [ Tue May 22, 2007 8:39 am ]
Post subject: 

Also, find now has a built-in command to delete found files, use -delete at the end instead of -print (or both, if you want to keep a log of deleted stuff).

Author:  donhamilton [ Tue May 22, 2007 8:42 am ]
Post subject:  USB backup

Is there a way to create off-line directories of the re-occuring recordings ?

I guess I did not mean backup.

I would like to move each recording to a seperate sub-directory on the USB disk.

Thanks

don

Author:  Too Many Secrets [ Tue May 22, 2007 8:50 am ]
Post subject: 

I bring up a terminal window and go to /myth/pretty you'll find your recordings. Then just
Code:
#cp <TV show name> /to_your_usb_device
<Tab> is your friend in getting the recorded name correctly. Then just delete (if you wish) the recording from the FE NOT the command line. (Of course this is assuming your USB device is mounted and all...)

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/