Here’s an easy way to generate a new uuid:
# uuidgen
550e8400-e29b-41d4-a716-446655440000
Here’s how to change uuid of a block device / hard drive partitions.
tune2fs -U 550e8400-e29b-41d4-a716-446655440000 /dev/sd**
Free and Open Source blogger with an attitude
Here’s an easy way to generate a new uuid:
# uuidgen
550e8400-e29b-41d4-a716-446655440000
Here’s how to change uuid of a block device / hard drive partitions.
tune2fs -U 550e8400-e29b-41d4-a716-446655440000 /dev/sd**
rsnapshot is a utility that uses rsync to synchronize files between two directories. rsnapshot makes it easier for system admin to backup crucial system data files regularly with minimal bandwidth and effort.
This guide assumes that you’ve already installed nfs-client and rsnapshot via “apt-get” utility in your Debian/Ubuntu Linux system.
Assumptions:
The backup server is connected in the same LAN as the main computer. The backup server is mounted as NFS on the main computer, ip address of the backup server is 192.168.1.100.
Step 1: Create a script to mount backup server filesystem
This is to ensure that the backup server is available at least hourly (or daily, depending on your requirements), save the file as “mount-backup-server.sh”
File content:
#!/usr/bin/bash # mount-backup-server.sh mount 192.168.1.100:/backup-point/ /media/backup/
Step 2: Ensure the mount script is run hourly
sudo cp mount-backup-server.sh /etc/cron.hourly sudo chmod a+x /etc/cron.hourly/mount-backup-server.sh
Continue reading “How to back up files periodically using rsnapshot and NFS in Ubuntu Linux”