DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-11-25 14:48:07

sissle
Member
Registered: 2008-01-23
Posts: 7

Backup of ffp files etc

My DNS-323 in now good working condition. I have spent some time to configure it with ffp, nfs server, mldonkey, openvpn and so on. I think it would be idea to make a backup of directories like ffp etc to restore if anything happens. What is the best way to make a backup preserving file ownership, access etc. Is there a command?

Offline

 

#2 2008-11-25 15:50:21

jesbo
Member
From: Falls Church, VA
Registered: 2008-08-28
Posts: 101

Re: Backup of ffp files etc

In my fun_plug I add a backup script to the crontab table that runs at 3 AM daily. 

Code:

       # Add USB FunPlug backup to RAID
        echo "Adding ffp backup job to crontab..."
        CRONTEXT=/mnt/HD_a2/crontab.txt
        /bin/crontab -l > $CRONTEXT
        /bin/echo "00 03 * * * /mnt/HD_a2/fun_plug_backup.sh" >> $CRONTEXT
        /bin/crontab $CRONTEXT
        /bin/rm $CRONTEXT

The backup shell script uses "rsync" to sync my /ffp (on the USB drive) with a backup located under /mnt/HD_a2/Backups/ffp.

Code:

#!/bin/sh

echo "* Backing up ffp from usb stick..."
/ffp/bin/rsync -a --delete /mnt/USB/ffp /mnt/HD_a2/Backups/ffp_usb
echo "* Backing up ffp from /mnt/HD_a2..."
/ffp/bin/rsync -a --delete /mnt/HD_a2/ffp /mnt/HD_a2/Backups/ffp_hd
echo "* Backing up ffp scripts from HD_a2..."
/ffp/bin/rsync -a --delete /mnt/HD_a2/fun_plug* /mnt/HD_a2/Backups/ffp_root
touch /mnt/HD_a2/Backups/ffp_backed_up
echo "* Backup Completed"

Works like a champ.

Last edited by jesbo (2008-11-25 16:05:55)


DNS-323 (H/W ver. B1) |  2 x 1 TB WD Caviar Black (Raid 1) | Corsair Flash Voyager - 16 GB USB | FW 1.08 | fun_plug 0.5

Offline

 

#3 2008-11-26 12:09:44

asluiter
Member
From: Melbourne, Australia
Registered: 2008-11-08
Posts: 9

Re: Backup of ffp files etc

Has anyone experienced problems backing up files from the USB with "Bus Errors" and the USB stick requiring a re-insert to get it going again? I keep getting this with large I/O to/from the USB stick. Makes it tricky to backup the ffp directories...

Thanks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB