Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

Unix script to create a backup on a remote computer


(!)

Rojin's Avatar
Rojin Rojin is offline
Member with 1 posts.
THREAD STARTER
 
Join Date: May 2012
Experience: Beginner
27-May-2012, 05:57 AM #1
Unix script to create a backup on a remote computer
Hello, I have a problem - I attended a UNIX course a couple of years back but, unfortunately, I don't remember how to write scripts for shell commands. Now I want to make a script that makes a backup of a folder on a remote computer and I have no idea how to begin.

So the idea is that I want the script to create a series of archives of a target directory, each archive must be no larger than 2GB in size and files should be each put in only one archive (as opposed to half of the file in archive1 and the other half in archive2), do not worry there are no files bigger than 2GB . For the transfer along the net I remember something about "ssh" and generated keys - to avoid password requst every time.

I also want the script to create a text file which indicates which file is in which archive or which archive contains which files, whichever.


Thank you!
gurutech's Avatar
Computer Specs
Member with 2,933 posts.
 
Join Date: Apr 2004
Location: Central NJ
Experience: Seasoned Professional
28-May-2012, 09:08 PM #2
It's been a long time since I've taken a Linux class as well, but I know you would need the "rsync" utility to do the backup, and the "tar" command to create the archives. You should be able to do a "man rsync" or "man tar" to get a list of the parameters you need, or do a google search.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
backup, remote computer, script

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2