Automatic FTP Backup System – A Very Simple Solution

March 27, 2008 | By: UbuntuLinuxHelp | 7 Comments
Posted in Applications, How to...

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Earlier last week I was reading some posts in a web hosting forum "Site Backup - Virtual Private Servers (VPS)", within the post a forum member was trying to facilitate an automated backup system for his important files. In this case they were web based files.

YAFC - FTPThere were some excellent solutions presented, such as Rsync, etc. But I thought that sometimes all we need is a small fix. It left me wondering how well known "Yet Another FTP Client" (Yafc) is? (There are quite a few, but this is one I found on Sourceforge (I think in 2005). It's a very handy, small client. From their Sourceforge profile:

"...Yafc is yet another FTP client which features a directory cache, remote filename completion, aliases, colorized ls, recursive get/put/ls/rm, nohup mode transfers, tagging (queueing), multiple connections, proxy support, and more. It has also support for Kerberos authentication and SSH2 (sftp)..."

You can read more about it here: yafc - Default branch

For a simple solution you can create a bash script to run the backup and cron to schedule it in an automated fashion. Here's a script example:

#!/bin/bash
yafc <<**
open ftp://username:password@<your-site-IP-address>/
cd public_html
mget *
close
**

Needless to say this is a very simple and fast fix and anyone can add and enhance the above example.

Nice, short, fast.
Enjoy!
:)

If you like this post, why not share it?
  • StumbleUpon
  • del.icio.us
  • Digg
  • Google Bookmarks
  • Reddit
  • Mixx
  • Yahoo! Bookmarks
  • blogmarks
  • Twitter

Related posts:

  1. Easily Use Cron to Backup Thunderbird eMail in Ubuntu Linux
  2. Duplicate Your DVD’s Using Ubuntu
  3. Automate Your Web Site Backup!
  4. How to Regularly Backup Ubuntu Using rsync
  5. How to regularly backup Windows XP to Ubuntu, using rsync


Comments

7 Comments so far

  1. Site backup - Page 2 - Your HostICan Community Site backup - Page 2 - Your HostICan Community on March 27, 2008 11:51 am

    [...] a simplified solution, I blogged about it here: Automatic FTP Backup System – A Very Simple Solution | Ubuntu Linux Help Maybe a few of you could take this a few steps further. For example, we could use a script to [...]

  2. Fr33d0m Fr33d0m on March 31, 2008 8:21 am

    The problem is that FTP is not a very secure means of transferring files.

  3. UbuntuLinuxHelp UbuntuLinuxHelp on March 31, 2008 8:55 am

    @Fr33d0m – Good point! That’s one thing everyone should be aware of! ;)

  4. HowtoMatrix » Automatic FTP Backup System - A Very Simple Solution HowtoMatrix » Automatic FTP Backup System - A Very Simple Solution on April 6, 2008 11:31 am

    [...] Earlier last week I was reading some posts in a web hosting forum “Site Backup – Virtual Private Servers (VPS)“, within the post a forum member was trying to facilitate an automated backup system for his important files. In this case they were web based files. Read more at Ubuntu Linux Help [...]

  5. Blogging me blogging you Blogging me blogging you on July 13, 2008 1:34 pm

    [...] som jag är frågade jag självklart Google om en lösning och hittade denna sida som beskriver hur man använder den minimala Linux FTP-klienten yafc för att ladda ner backups [...]

  6. khalil khalil on May 9, 2009 8:14 am

    You can encrypt your tar file before sending it with ftp using gpg -s .
    Quite easy and secure too !!!

  7. old linux man old linux man on June 28, 2010 2:45 pm

    [********], use rsync over ssh! if your provider will not provide ssh or rsync server, change providers!!! The internet community must finally let all this idiots die, that are still offering ftp only accounts.

    Note: Profanity removed by administrator

Name (required)

Email (required)

Website

Speak your mind