Originally Posted by stryker759a
I am trying to create a backup script that will back up a single folder for a class i am in. I was wandering if I could get some help. If possible I would also like to know how to write a script that can encrypt that same file . I will be putting the back up in my /home/usr/Backup directory. I am not trying to back up my whole system just a single folder. I am using Fedora 11
Thanks alot I am new to linux and am running fedora 11.
This command creates a compressed backup file of a folder's contents:
$ tar -cjf backup.tar.bz2 /folder/path
This command encrypts an existing file:
$ openssl enc -aes-256-cbc -e -in /file/to/encrypt -out /file/to/save
I will leave to you the task of combining these into a useful script.