[GoLUG] Quick project directory backups (Re: New additions to my bupsky script)

Steve Litt slitt at troubleshooters.com
Wed Jan 15 18:15:31 EST 2025


Omer Zak said on Wed, 15 Jan 2025 14:46:33 +0200

>My quick backup script is based upon:
>BKPFNAME=~/backups/`date '+%Y%b%d-%H%M'`-someprojname.tgz
>cd /path/to/someprojname
>tar zcvf $BKPFNAME --exclude=node_modules --exclude=build .
>
>Major differences:
>1. tar-gzipped instead of directory tree copy - less risk of confusion
>due to editing files in the wrong directory.
>2. do not backup some big fat and autogenerated directories.

NICE!

I might later modify bupsky so, when invoked on a huge tree, it
tarballs it. On smaller directories size isn't a problem, given my 14TB
7200RPM spinning rust drive. And when I replace this computer a year or
two from now, it will probably be a 20TB drive. And of course, if my
14TB is still functional, a few weeks afterward I can add it to my
computer, for 34TB total.

SteveT

Steve Litt 

http://444domains.com



More information about the GoLUG mailing list