Skip to content

cautious backup script with rsync, shred, and gpg

License

Notifications You must be signed in to change notification settings

jpegleg/magic-spell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

magic-spell

A backup script that backs up most of remote server (minus some un-wanted directories, special devices, src scraps, and log data), and encrypts it for storage with the public key of your choice using pgp (gpg).

Because of the way rsync works, it must be run as root to preserve the ownership and permissions of the files correctly.

Example usage:

chmod +x magic-spell mv magic-spell /usr/local/sbin/ mkdir -p /var/workspace/.ssh cp /home/some-admin-ssh-user/.ssh/id_rsa /var/workspace/id_rsa magic-spell keeganbowen.com D9348300F93B589BFCB61242870C8F5DFE58219A /var/workspace/

Different style example usage as crontab, root's home directory as the work dir, and with email public key identifier:

cp magic-spell /root/ chmod +x /root/magic-spell crontab -e

5 5 5 * * /root/magic-spell keeganbowen.com mykey@keeganbowen.com /root/

About

cautious backup script with rsync, shred, and gpg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages