LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Newbie trying to write a simple backup script to backup a single folder Nd for school (http://www.linuxquestions.org/questions/linux-newbie-8/newbie-trying-to-write-a-simple-backup-script-to-backup-a-single-folder-nd-for-school-755523/)

stryker759a 09-15-2009 11:23 PM

Newbie trying to write a simple backup script to backup a single folder Nd for school
 
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.
Jason

lutusp 09-16-2009 01:28 AM

Quote:

Originally Posted by stryker759a (Post 3684501)
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.
Jason

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.

onebuck 09-16-2009 08:52 AM

Hi,

Welcome to LQ!

Now that we are all aware of your 'needs'. What are your 'deeds'?

Just a few links to aid you;

Linux Documentation Project
Rute Tutorial & Exposition
Advanced Bash-Scripting Guide
Linux Command Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

These links and others can be found at 'Slackware-Links' . More than just SlackwareŽ links!


All times are GMT -5. The time now is 09:31 AM.