Enter your email address:

Delivered by FeedBurner

shell script to backup files using ncftp or scp


StumbleUpon Toolbar

With this shell script you can choose at your discretion to use ftp (ncftpput) or ssh (scp) to move your backup files to another server, you can get this script run on a cron job for automatic backup, it also uses tar command to compress your files, before copying them.

To use it, just copy to your $HOME/bin directory, or where ever you would like to, make it executable

chmod 700 backup_script.sh

be sure to make it readable only by you, because it will contain password information, so use the above permissions.

If you plan to use it with scp make sure you can access the other PC with no need to enter password, to do that follow this instructions Login through ssh using no password , and if you plan to use it in a cron job, better read this file Running scripts with cron jobs .

Finally, you can download the script from here: Shell script to backup files

Trackback URL for this post:

http://www.go2linux.org/trackback/64
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

hi i am saeid omidi from

hi
i am saeid omidi from middle east
i am software engeenier

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting