Subj : Re: Backup script tuning To : paulie420 From : MegaBrutal Date : Sun Dec 18 2022 00:55:04 Hello, Not sure if the question is still actual, but here are some quick notes: 1. Try to write POSIX compliant scripts those don't depend on Bash. Use checkbashisms to check whether you are using any Bash-only features. Then you can safely use the #!/bin/sh shebang. (Unless you really need some Bash features, but then you should declare that your script requires Bash with the #!/bin/bash shebang. Unlikely you'll need Bash for a backup script) 2. Use shellcheck to validate your code. It helps you point out gotchas you might not think of. 3. This is just my taste, but for FS I need regular backups from, I'd prefer to use BTRFS, then my script would make a snapshot of the subvolume and transfer it to another disk via the btrfs send command. Not only it would be more error-prone(as an entire subvolume would be transferred differentially (in case you use -p to specify your previous snapshot to use as a base) which either fails or succeeds, but you could save previous states of your files snapshotted at specific points in time without using significantly more disk space. 4. If I can't use BTRFS but need differential archives, I prefer to use DAR. Ask if you want me to elaborate or anyone disapproves. ;) ~ MegaBrutal (new on this BBS) --- Mystic BBS v1.12 A46 2020/08/26 (Linux/64) * Origin: Sent from Al's Geek Lab 1337:2/104 (1337:2/104) .