Auto Backup of Files in Windows

From OpenFSG
Jump to: navigation, search

Backing up your files regularly is a good idea and the FSG is perfectly suited for the task. There are multiple ways to do that:

Contents

Using rsync

Use rysnc on the FSG and (for Windows users) DeltaCopy on your machine. This is a very good choice if you have lots of data e.g. 500MB in total to keep in sync (backup to the FSG) but only some MB change every day (or even nothing). rsync copys only the data which has changed since the last backup! Speeds up things a lot. There are different ways of setting this up, depending on your needs and OS:

Creating backups from Windows to the FSG using rsync and DeltaCopy

motd file = /opt/etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/lock/rsyncd.lock
 [backup]
   path = /home/backup/
   comment = rsync Backup Server
   list = yes
   uid = username
   gid = backup
   read only = no
#   auth users = username
#   secrets file = /opt/etc/rsyncd.secrets

You have to insert the username and group you like to use for backup and specify a valid path.

touch /opt/etc/rsyncd.motd
rsync   stream  tcp     nowait  root    /opt/bin/rsync rsync --daemon --config=/etc/rsyncd.conf
rsync           873/tcp
rsync           873/udp
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 873 -j ACCEPT 

You will have to set this every time you reboot the FSG, so better put in into a script which starts at boot time, e.g. the same that starts rsync daemon (next step).

RSYNC_ENABLE=true
and maybe (not necessary)
RSYNC_OPTS='--config=/opt/etc/rsyncd.conf'

Everything else should already be arranged by the rsync installer (links in rc.optware, /opt/etc/init.d/S56rsync file etc.

 chmod g+s backup /home/backup/
-rzt --delete-excluded --delete-during --filter "- Temporary Internet Files"
--exclude "NTUSER.DAT" --exclude "ntuser.dat.LOG"
--exclude "UsrClass.dat" --exclude "UsrClass.dat.LOG"
--exclude "Mozilla/Firefox/Profiles/*/Cache/" --exclude "*.lock" --exclude "*/Recent/*"
--exclude "*/Temp/*"
-rzt is very important!

More information on Rsync is here and on the Internet (man rsync).

Using SyncBack (for Windows)

Use a program called SyncBack. You can schedule automated incremental backups of your data with it.

Preparation

  1. Download and install SyncBack.
  2. Create a Folder on the FSG that you want to backup your documents to
    • If you are going to backup using the FSG's FTP server there are a few extra steps
      1. Enable the FTP server from the FSG's web interface

(more to come)



External Links

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox