Best command line tool for incremental backup?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
Dingo
Posts: 244
Joined: Sat Aug 01, 2020 3:03 pm
Has thanked: 10 times
Been thanked: 17 times

Best command line tool for incremental backup?

Post by Dingo »

Woof woof!
After back to home, I realized the need of a good command line program to perform backup
I would wish a command line program without external dependencies unlike rsnapshot (that has perl dependency hard to accomplish for older puppy like puppy 3.01)
I actually use rsync with -a switch, do you have better suggestions or Can I still to use rsync (with nice and ionice combined and prepended to avoid overload on my ancient HP D530 Pentium 4 2,66 Ghz pc)
user1111

Re: Best command line tool for incremental backup?

Post by user1111 »

Fatdog with multi-session style saves :)

Same as if using a DVD where each new save created another file/folder of the changes back onto the DVD, but where its saves each 'save' to a new additional sfs file. So you have a full audit trail.

Once the number of sfs's has built up you can boot, move them to another folder and then run a 'save' and in effect they'll all be merged into a single sfs.
dancytron
Posts: 721
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 518 times
Been thanked: 215 times

Re: Best command line tool for incremental backup?

Post by dancytron »

FWIW, this is the incremental backup script that I use. I use it in Debian Dog, but I can't imagine it wouldn't work in Puppy. I put them in /usr/local/bin.

Sda2 is my linux drive and sdc2 is a place for backups on my usb hard drive.

I use 2 scripts, 1 to start it and 1 to do the backup, to follow how Fred sets up his scripts to be in a window so you can see what's going on. I also made it more verbose.

I use this script to start it:

Code: Select all

#!/bin/bash

xterm -T "Backup sda2 to sdc2" -si -sb -fg white -bg SkyBlue4 -geometry 80x22 -e /usr/local/bin/backupsda2Tosdc2.sh
This is the script I run with the 1st script.
I have included some notes etc commented in the script.

Code: Select all

#!/bin/bash

#backup sda2 to sdc2
#https://wiki.archlinux.org/index.php/Rsync#As_a_backup_utility

echo backing up sda2 to sdc2

#verbose script
rsync -ai --progress --delete /mnt/sda2/ /mnt/sdc2

#original simple script
#rsync -a --delete /mnt/sda2/ /mnt/sdc1

#verbose script from red drive-backup individual directories
#rsync -ai --progress --delete /mnt/sda2/ChromeDog64 /mnt/sdc1 ;
#rsync -ai --progress --delete /mnt/sda2/StretchLinked /mnt/sdc1

echo Backup Complete - Press Enter to Close
read  

#rsync sdc2 back to sda2 (probably don't need to use)

#rsync -a --delete --quiet /mnt/sdc2/ /mnt/sda2

#see https://askubuntu.com/questions/98597/increase-verbosity-of-running-rsync-process for logging and verbose options
User avatar
Dingo
Posts: 244
Joined: Sat Aug 01, 2020 3:03 pm
Has thanked: 10 times
Been thanked: 17 times

Re: Best command line tool for incremental backup?

Post by Dingo »

dancytron wrote: Thu Sep 10, 2020 3:05 am FWIW, this is the incremental backup script that I use. I use it in Debian Dog, but I can't imagine it wouldn't work in Puppy. I put them in /usr/local/bin.
[...]
Thanks for tips regarding also -i switch. I have an old Pentium IV 2,66 Ghz HP D530 desktop pc, and I need to prepend nice and ionice in order to avoid cpu and disk overload with rsync checking for a large number of files (I have a large amount of files on hard disk) while backupping on my external 64 GB pendrive (formatted in ext3 for retrocompatibility). I have only USB 2.0 ports on this Desktop pc, so the operations take their time in order to complete
Post Reply

Return to “Users”