Changes between Version 4 and Version 5 of faq/backup-setup
- Timestamp:
- Jul 10, 2008, 3:44:08 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/backup-setup
v4 v5 6 6 7 7 We recommend that you use backupninja and rdiff-backup. Below are instructions for how to get started with these two programs. 8 9 NOTE: in it's current release backupninja has no internal way to limit bandwidth (bandwidth limiting will be available in future releases). Therefore you should run it through [http://www.monkey.org/~marius/trickle/ trickle]. dkg explains it with:10 11 {{{12 Say you want to limit backupninja 50Kbps down and 70Kbps up. Instead of running13 14 backupninja -n15 16 you can run17 18 trickle -d 50 -u 70 backupninja -n19 }}}20 8 21 9 If you are not running Debian, please check out the respective web sites for backupninja and rdiff-backup to download the programs ([http://dev.riseup.net/backupninja/ http://dev.riseup.net/backupninja] and [http://www.nongnu.org/rdiff-backup/ http://www.nongnu.org/rdiff-backup]). … … 58 46 59 47 60 # an optional subdirectory below 'directory' (see [dest]) 48 # an optional subdirectory below 'directory' (see [dest]). 49 # This should be set to the name of the particular server you're backing up 50 # in order to distinguish between multiple server backups. 61 51 label = SERVERNAME 62 52 … … 69 59 # files to include in the backup 70 60 # (supports globbing with '*') 61 # You can add additional lines to back up additional files or directories. 71 62 include = /etc 72 63 include = /var/log … … 91 82 92 83 # put the backups under this directory 93 directory = /home/members/MEMBERNAME/backups/84 directory = backups/ 94 85 95 86 # make the files owned by this user … … 109 100 }}} 110 101 111 (t is test, n is now, d is debug) 102 (t is test and tells backupninja to simply test the backup procedure without actually backing up the files; n is now, which tells backupninja to ignore its regular schedule and run right now; d is debug, which tells backupninja to give detailed feedback on what it's doing and any errors it encounters.) 103 104 NOTE: in it's current release backupninja has no internal way to limit bandwidth (bandwidth limiting will be available in future releases). There are two good reasons for setting bandwidth limits: so that your internet connection's bandwidth isn't completely monopolized while the backup is running, and so that you don't monopolize May First's bandwidth and make it harder for others to do backups at the same time as you. Therefore, you should run it through [http://www.monkey.org/~marius/trickle/ trickle]. dkg explains it with: 105 106 {{{ 107 Say you want to limit backupninja 50Kbps down and 70Kbps up. Instead of running 108 109 backupninja -n 110 111 you can run 112 113 trickle -d 50 -u 70 backupninja -n 114 }}} 115 116 Since you won't usually be running backupninja manually, you should also change backupninja's cron job to use trickle. By default in Debian, the cron job will be found in /etc/cron.d/backupninja. You should change the cron job to look something like this: 117 118 {{{ 119 # /etc/cron.d/backupninja -- cron tab entry for package backupninja 120 121 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 122 123 # run backupninja every hour on the hour 124 0 * * * * root if [ -x /usr/sbin/backupninja ]; then /usr/bin/trickle -d 50 -u 70 /usr/sbin/backupninja; fi 125 }}} 112 126 113 127 A few additional thoughts from abh: