Sudo /usr/bin/rsnapshot -c /etc/-rsync daily Test that the backup works with the command:.# up to removable media, such as a FireWire or USB drive. This is particularly useful if you are backing # If no_create_root is enabled, rsnapshot will not automatically create the # All snapshots will be stored under this root directory. # Directories require a trailing slash: # # This file requires tabs between elements # # PLEASE BE AWARE OF THE FOLLOWING RULES: # Spaces will cause rsnapshot to fail when you test it): …and paste the following into the file (note that tab characters are used between the parameters, NOT spaces. Create an rsnapshot configuration file by entering the command:. Also, we want to avoid writing to the SD card as much as possible, as this will shorten it’s working life. This directory will be lost whenever the Raspberry Pi is rebooted, so it should not be used as a permanent storage location. For the moment we will back up to the /tmp/ directory on the Raspberry Pi’s SD card, but once we are happy it is working, we will mount an external hard disk and back up to that. On completion, create a directory in which the backups will be stored.Installing the rsnapshot package is as easy as entering the command:.Hostname = pi-rsync (or whatever you want to call it).Select “Advanced Options” and set the following:.Change the hostname of your Raspberry Pi to something more meaningful by logging on to the device as user “pi” and issuing the command:.Follow the instructions at How to install the Raspbian OS on a Raspberry Pi.More information about rsnapshot can be found at. In this posting we are going to turn a Raspberry Pi into a backup device, using the excellent rsnapshot utility to save full and incremental backups to an external USB hard drive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |