Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Guys, I've been using Rescuezilla 2.3.1 (Focal) to create routine, full backups of my Linux Mint 21.1 laptop installation (which is on a 500GB SSD) to an external, 500GB HDD; I also back up my /Home folder, separately, to the same, eternal 500GB HDD. This process works fine, but I wonder if I'm pushing my luck by continuously copying these backups to a HDD.
Also, while Rescuezilla works very nicely, it does require copying the entire disk, every time.
I'm not really proficient at the "terminal command line" level, so... is there easy-to-use GUI backup software available, that copies only changes that have been made since the previous backup?
Also, while Rescuezilla works very nicely, it does require copying the entire disk, every time.
I'm not really proficient at the "terminal command line" level, so... is there easy-to-use GUI backup software available, that copies only changes that have been made since the previous backup?
You should switch to a backup method that only copies every file the first time you run it. Thereafter it only copies new files or files that have been changed. rsync is the best command line program to do this. I have set up several scripts to do my own backups using rsync. Here is a command script that I use to backup /home.
Code:
# Back up /home
if test ! -d /media/usb.hard.drive.401.1/home;
then
mkdir /media/usb.hard.drive.401.1/home
fi
rsync -aru --delete /home /media/usb.hard.drive.401.1
Perhaps somebody else can point you to a GUI program that acts as a front end to rsync.
p.s. Here is an explanation of the script:
The output is to go to a usb drive that is mounted as usb.hard.drive.401.1 on the directory /media. The if statement checks to see if there is a directory called /home on usb.hard.drive.401.1. If not then create a directory called /home on usb.hard.drive.401.1.
Then use rsync to copy the /home files to the /home directory on usb.hard.drive.401.1. The --delete parameter means that if a file is present on the backup but not present on /home then delete that file on the backup. I keep all backups for two weeks so that I don't make the mistake of deleting a file, rsync deletes it on the backup, and then I discover that I need to restore the missing file. But if you don't use --delete then the backup hard drive eventually gets filled up with garbage.
The -aru parameter means copy all subdirectories and files in /home and do not copy any files that are identical to the output files or older than the output files.
You should switch to a backup method that only copies every file the first time you run it. Thereafter it only copies new files or files that have been changed. rsync is the best command line program to do this. I have set up several scripts to do my own backups using rsync. Here is a command script that I use to backup /home.
Code:
# Back up /home
if test ! -d /media/usb.hard.drive.401.1/home;
then
mkdir /media/usb.hard.drive.401.1/home
fi
rsync -aru --delete /home /media/usb.hard.drive.401.1
Perhaps somebody else can point you to a GUI program that acts as a front end to rsync.
p.s. Here is an explanation of the script:
The output is to go to a usb drive that is mounted as usb.hard.drive.401.1 on the directory /media. The if statement checks to see if there is a directory called /home on usb.hard.drive.401.1. If not then create a directory called /home on usb.hard.drive.401.1.
Then use rsync to copy the /home files to the /home directory on usb.hard.drive.401.1. The --delete parameter means that if a file is present on the backup but not present on /home then delete that file on the backup. I keep all backups for two weeks so that I don't make the mistake of deleting a file, rsync deletes it on the backup, and then I discover that I need to restore the missing file. But if you don't use --delete then the backup hard drive eventually gets filled up with garbage.
The -aru parameter means copy all subdirectories and files in /home and do not copy any files that are identical to the output files or older than the output files.
To me this sounds like a disaster waiting to happen...
At least you now can't come here whining later!
It is a disaster waiting to happen if you only have one generation of backup. I keep generations of backup for at least two weeks both on and off site. So if I delete a file on my system it takes at least two weeks for the deletion to work its way through my backup generations. My house burned down in 2015 and the off site backup saved my bacon.
In addition you have the same problem when you update a file. The new version of the file overwrites the previous version on the backup. If you decide to go back to the old file after you back it up you will need generations of backup.
To me it sounds more like syncing disc sets... my backups contains all files ever created/saved.
My desktop drives are kept fairly clean from unwanted "clutter" and should I for some reason need older files, they can always be found in the backups/archive. Your suggestion will eventually make me end up with backup files = desktop files = synced discs.
Perhaps we just don't agree on the definition of "backup"?
Does your backup system have previous versions of currently existing files? The generation concept keeps old versions of files for two weeks. Only my first generation backup is synced with my current desktop files.
Does your backup system have previous versions of currently existing files?
Backups are never altered or deleted. Only appended to with new files or files altered since last backup.
So you can of course go back into the archive and pick any previous (saved) version.
Quote:
Originally Posted by jailbait
The generation concept keeps old versions of files for two weeks. Only my first generation backup is synced with my current desktop files.
If you delete a folder or file, it's gone forever after two weeks?
Some documents I'm required to save for 5 or 10 years. Others I want to save forever.
But as I don't want my current workspace/-discs cluttered with these older, finished projects, they are deleted from pc and now only exists in the backup copies...
Should a customer have a request, I'm proud to deliver no matter how old a project is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.