LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-15-2009, 11:23 PM   #1
stryker759a
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 09-16-2009, 01:28 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by stryker759a View Post
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.
 
Old 09-16-2009, 08:52 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,201
Blog Entries: 3

Rep: Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426Reputation: 1426
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to write a backup script? joseph2020 Ubuntu 12 06-15-2009 01:36 PM
Simple backup script dotancohen Linux - Newbie 7 06-18-2006 11:53 PM
Backup script to write to file? ctroyp Linux - Newbie 13 01-10-2006 06:15 PM
Simple help with a backup script GraemeK Linux - Software 1 05-20-2005 11:43 PM
simple-backup-script ahmed4linux Linux - General 1 05-04-2005 07:10 PM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration