Results 1 to 3 of 3

Thread: back-up options

  1. #1
    Join Date
    Aug 2013

    back-up options

    I have an old laptop with Ubuntu 12.04 installed, running as a server for all my pictures.
    While this solution works just fine, I haven't found a satisfactory solution for backing up these photos.

    What I want to do, is to have these pictures backed up at a weekly schedule to either a USB drive or a cloud service (Box)

    I do not want to create a back-up file / snapshot - I want to have the backed up pictures organized the same way as they are on the server (so they can be easily accessed if necessary).

    Sure, I can drag and drop once a week, but I want to automate this process.

    Is this possible?

  2. #2
    Join Date
    Apr 2006
    Adelaide, Australia
    Ubuntu 16.04 Xenial Xerus

    Re: back-up options

    You can use rsync to do the backup. It is an excellent tool and properly configured it will only back up files which are new or which have changed, leaving the rest as they are.

    Then you can set up a cron job to schedule the copy, or just create a simple script file which you run every Sunday morning or such. This is the way I do it, anyway.
    "Strive to be the person your dog thinks you are"

  3. #3
    Join Date
    Nov 2008
    Metro Boston
    Kubuntu 14.04 Trusty Tahr

    Re: back-up options

    Create a file as root with sudo like this:

    /usr/bin/rsync -av /path/to/your/pictures [user@]server:/path/to/backup/directory
    If you are not using a remote server, you can replace the target with a path to an external drive. Suppose you have an external USB drive mounted as /media/external with a directory on it called backup. Then use this syntax instead:

    /usr/bin/rsync -av /path/to/your/pictures /media/external/backup
    Let's suppose you called this file /root/backup. Make sure root can execute the file with the command:

    chmod u+x /root/backup
    then go to the directory /etc/cron.weekly and use this command:

    sudo ln -s /root/backup
    That will create a "symbolic link," or "symlink," to the file. The backup will be run early Sunday mornings.
    Last edited by SeijiSensei; August 22nd, 2013 at 02:56 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts