NavigationUser loginWho's onlineThere are currently 1 user and 21 guests online.
Online usersLinux NewsClick the above for your daily dose of Linux news. Food for ThoughtAn imbalance between rich and poor is the oldest and most fatal ailment of all republics. Spam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
Set upHow to Backup Debian with Backupninja - home user The rdiff-backup set up bellow is based around having two linux pc's on a LAN. Or if you have a trusted friend you could keep each others backups by using rdiff-backup (secure since it uses ssh) over the net or better still duplicity which encrypts the data then you don't have to trust them. Restoring data with duplicity may prove harder since it is not a plain mirror. However rdiff-backup may just as easily be used locally to an internal hard drive or a usb drive mounted at /backup. Use a different unit from the data source otherwise you won't protect against disk failure or a seperate partition mounted at /backup and then use makecd to create iso images to burn to cd/dvd size allowing. Take these to work and stash them in your desk in case of fire/theft. See the makecd section if you just want to prepare iso images for burning to cd/dvd. I have not tested if backupninja splits the images to the correct size for the type of disk. ////////////////////////////////////////////////////////////////////////// Details: /etc/backupninja.conf comment out (place # in front) or change these lines as needed using your favourite text editor: now it turns out the when line "when = everyday at 01:00" is the script default and will not stop backup attempts if simply commented out. So if you want to stop these automatic backup attempts then the cron job that is run every hour needs to be commented out: /etc/cron.d/backupninja __Logic__ Have you ever read root's mail as a home user? If you do then leave it as is. Otherwise /var/log/backupninja.log is the place to look, to ensure the backup completed every time you run: color is up to you, I have a yellow root terminal backround so I set it to 'no' /etc/backup.d/ We have installed a version of backupninja that includes ninjahelper in the Installation section of this How-To so that is what we will use to populate this directory (roll down to next section). Or you can copy files from /usr/share/doc/backupninja/examples or get my examples here. -Note do not leave old files lying around it this directory as backupninja will not like it and tries to execute everything that does not have a .disabled extension. -Files are executed in order so : will try to run: 10 (but disabled) then 20 (but disabled) then 30.sh which does things that will be used in 90.rdiff then 91.rdiff. _______________________________________________________________________ An ncurses program should appear. _______________________________________________________________________ Select 'new' -> 'makecd' answer questions: _______________________________________________________________________ Select 'new' -> 'rdiff' -> 'src' add include lines: >hit enter add exclude lines: exclude = /home/*/.gnupg exclude = /root/*/.gnupg >hit enter 'des' add destination lines: 60D >hit enter 'conn' this will then test the destination and transfer the ssh keys. Follow the messages all must go well here or you won't be able to transfer data to the destination. Create the directory if it asks. _______________________________________________________________________ Finished Or to run all the enabled actions when it suites you (say weekly). When backupninja is finished (the prompt returns) always check that the backup has worked by reading /var/log/backupninja.log and checking the destination and testing Restore. Backupninja will attempt to continue if the network drops out and returns. But if you 'Ctrl+C' it's ass then it obviously won't finish and rdiff-backup's need to be run initially at least twice successfully, once to create the mirror then once to create the diff so do it twice for this first time. A first run of rdiff backup took me 1h34 (3.62GB) of pics across 100M LAN through a switch. The second run takes less than 2min. Next Restore
|