Results 1 to 8 of 8

Thread: automatically syncing files to a partition

  1. #1

    Default automatically syncing files to a partition

    Hey, I'm using opensuse 11.2 KDE. I have a backup repository that I like to sync my main files (music, pictures, documents, etc.) to. I was wondering if there is software, or a script, or something that I can use to automatically sync these files on a daily basis (or some set time)? I've looked around the internet a little bit, but I haven't found anything too fruitful.

  2. #2
    Join Date
    Oct 2008
    Location
    Sunny Arizona
    Posts
    251

    Default Re: automatically syncing files to a partition

    rsync is the command-line tool you're looking for. There are several front-ends for it.

    'grsync' comes to mind and is available in the packman repo, so I'd start there. I believe it will help you set up a daily sync, but if not post back and we'll help you set up a cron.daily job.

  3. #3

    Default Re: automatically syncing files to a partition

    OK, so I tried grsync, but the partition is password protected and it couldn't work. I then tried gadmin rsync which had to be executed with a password. neither of them gave me an option for a daily sync.

  4. #4
    Join Date
    Oct 2008
    Location
    Sunny Arizona
    Posts
    251

    Default Re: automatically syncing files to a partition

    You'll most likely want to always run grsync (or any syncing program) with superuser privileges to make sure the file permissions, etc. get synced correctly, so you're on the right track.

    If grsync won't do it, it's still pretty easy to set up a script that runs your sync every day.

    You can do it in 4 easy steps:

    1. Run grsync as a superuser, and set up your sync in grsync the way you want it. Hit "simulation", and it should pop up a text box with the simulated results of your sync. Check to make sure everything looks kosher.
    2. If everything looked all right in step 1, look for a line near the top of the text box that starts with "rsync ". It will be something like "rsync -r -n -t -v --progress.... blah blah blah". Keep this text box open, because you'll need to cut/paste this line.
    3. Still as su, create a new text document in the /etc/cron.daily/ directory. (This is a magical directory that runs any script placed inside it once, and only once, a day.) It can be called anything you want. Inside this new text document, input these two lines:
    Code:
    #!/bin/bash
    --CUT/PASTE THE "rsync...blah blah blah LINE" FROM STEP 2 HERE--
    Save your new text file and close whatever program you used to edit it.
    4. Change the properties on your new text file to "executable".

    That's it. Follow these steps and you'll create a cron job that runs your rsync script once (and only once) a day.

  5. #5
    Join Date
    Sep 2008
    Location
    Wenatchee WA USA
    Posts
    80

    Default Re: automatically syncing files to a partition

    Sounds like you need to put your rsync command inside a shell script, and use cron to execute it every day at a given time.

  6. #6
    Join Date
    Oct 2008
    Location
    Sunny Arizona
    Posts
    251

    Default Re: automatically syncing files to a partition

    If you don't want to do the cron-scripting in my previous post, I just found "luckybackup" in the KDE "Community" repo. (One-click install here)

    It is another rsync frontend, but looks like it has scheduling included, which I think is what you're looking for. Remember you'll still have to run it as a superuser to make sure it runs correctly.

  7. #7
    Join Date
    Dec 2008
    Location
    Sydney, Australia
    Posts
    1,020

    Default Re: automatically syncing files to a partition

    Synkron also has scheduling, and works well on my setup. Can't remember where I got it from, probably the Packman repo but just google it.
    Günter

    Desk: Leap 42.2, KDE 5, Intel i3, 8Gb, Kingston 64Gb SSD, 2 SATA.
    Lap: Thinkpad T430, Tumbleweed, Intel i5, 8Gb, SSD.

  8. #8
    Join Date
    Oct 2008
    Location
    Sunny Arizona
    Posts
    251

    Default Re: automatically syncing files to a partition

    Quote Originally Posted by gminnerup View Post
    Synkron also has scheduling, and works well on my setup. Can't remember where I got it from, probably the Packman repo but just google it.
    One-click install for synkron here.

Tags for this Thread

Posting Permissions

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