__TOC__
=== Preparing an External USB Drive === Off-the-shelf external USB drives normally are setup to work with computers that utilize CIFS type filesystems. rsnapshot uses a "hard links" feature that is unique to Linux/Unix filesystems (ext3). "Hard Links" are not supported on filesystems such as: '''"smbfs"''', '''"Samba (SMB)"''', '''"FAT"''', '''"FAT32"''', '''"NTFS"''', '''"CIFS"''', '''"vfat"'''. "Amahi Greyhole" mounts Amahi shares that look like "local disk drives" '''''but''''' these are Samba (SMB) mounted shares. The external disk drive will have to be prepared for a Linux/Unix filesystem, in particular ext3. Why? ext3 has been around for sometime, is stable, and "Windows" computers have Open Source drivers that can be installed to gain access to an ext3 drive. The external drive can be setup for ext3 as follows: You need to format (ext3, ext4) an external USB disk drive for rsnapshot to work. :umount /media/yourdisklabel :mkfs -t ext3 -v -L usbdisk /dev/sdb1 THIS WILL ERASE ALL DATA ON /dev/sdb1, MAKE SURE THIS IS YOUR USB DRIVE AND NOT ANOTHER DRIVE ===Install rsnapshot===:yum install rsnapshot :mkdir -p /media/usbdisk/.private/.snapshots :chmod 0700 /media/usbdisk/.private/ :chmod 0755 /media/usbdisk/.private/.snapshots/ ===Quick rsnapshot Recipe===
Here is a quick recipe to configure rsnapshot.
weekly.0 to weekly.3 ... etc.
===Another example of rsnapshot configuration on amahi 5.1===
In this example automated backups are made to an external usb drive.
Plug in the USB drive, it will probably mount automatically under /media/yourdisklabel
in the output, find which device is your usbdrive, possibly /dev/sdb1
=Format usb disk=You need to format (ext3, ext4) an external USB disk drive for rsnapshot to work. rsnapshot uses a "hard links" feature that is unique to Linux/Unix filesystems. "Hard Links" are not supported on filesystems such as: '''"smbfs"''', '''"Samba (SMB)"''', '''"FAT"''', '''"FAT32"''', '''"NTFS"''', '''"CIFS"''', '''"vfat"'''. "Amahi Greyhole" mounts Amahi shares that look like "local disk drives" '''''but''''' these are Samba (SMB) mounted shares. :umount /media/yourdisklabel :mkfs -t ext3 -v -L usbdisk /dev/sdb1 THIS WILL ERASE ALL DATA ON /dev/sdb1, MAKE SURE THIS IS YOUR USB DRIVE AND NOT ANOTHER DRIVE =Install rsnapshot=:yum install rsnapshot :mkdir -p /media/usbdisk/.private/.snapshots :chmod 0700 /media/usbdisk/.private/ :chmod 0755 /media/usbdisk/.private/.snapshots/ =Mount your usbdisk permanently===
To Mount your usbdisk permanently (so the backup will work after a reboot) do the following:
Save the file.
===Modify rsnapshot configuration===
:nano /etc/rsnapshot.conf
this should return: syntax OK
===Email reporting===
for email reporting on your backups:
:chmod 744 rsnapreport.pl
===Automate backup with cronjob===
:crontab -l > cronjobs