1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Unix script to create a backup on a remote computer

Discussion in 'Linux and Unix' started by Rojin, May 27, 2012.

Thread Status:
Not open for further replies.
  1. Rojin

    Rojin Thread Starter

    May 27, 2012
    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. :D

    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!
  2. gurutech


    Apr 23, 2004
    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
As Seen On...

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.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1054772