Backup script



I have created the following script:

suffix=($date +%y%m%d)
cd /home/hnoc/.snapshot/monthly.0/
tar -cf /home/hnoc/backup/archives/$suffix.tar

I run it and get the following error:

./ line 3: cd: /home/hnoc/.snapshot/monthly.0/: No such file or directory
tar: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

I have the exact same script for another domain with Dreamhost on another server and it works fine. What’s the deal?


Maybe the site is too new to have a monthly backup yet?


Promo-Code: [color=#CC0000]SAVEMONEY97[/color] - Save [color=#CC0000]$50[/color] on your first year of hosting.
Get more promo codes here


shell in and check if anything is actually inside the .snapshot directory.

All mine have been empty since Blingyfest :frowning:

Maximum Cash Discount on any plan with MAXCASH


That was it, no monthly folder. Changed to weekly.0 and it works. Thanks for the suggestion.