Jump to content

Web backup / Cron


matfish

Recommended Posts

Hi there,

 

Is there a way of .zipping or .taring up /srv/www/htdocs in a .sh script? I can then add it to a cron on a weekly basis as a backup routine?

 

I've tried a few but if they hit a file which is CHMODed to 0 then it stops.

 

Many thanks

Link to comment
Share on other sites

Thanks all.

 

There were only a few files chmodded to 0 - this was to stop users viewing these old pages but I didn't want to delete them.

 

I've backed them up so the site is chmod 0 free and the scripts work fine now.

 

Thanks for your help

Link to comment
Share on other sites

I like duplicity for my backups.

 

Duplicity backs directories by producing encrypted tar-format volumes and uploading them to a remote or local file server. Because duplicity uses librsync, the incremental archives are space efficient and only record the parts of files that have changed since the last backup. Because duplicity uses GnuPG to encrypt and/or sign these archives, they will be safe from spying and/or modification by the server.

Link to comment
Share on other sites

I like duplicity for my backups.

 

Duplicity backs directories by producing encrypted tar-format volumes and uploading them to a remote or local file server. Because duplicity uses librsync, the incremental archives are space efficient and only record the parts of files that have changed since the last backup. Because duplicity uses GnuPG to encrypt and/or sign these archives, they will be safe from spying and/or modification by the server.

 

 

Oooo I like it.  Next time I have the need for something like that, I shall use it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.