Re: [SLE] Can anyone recommend a backup program/script for home user?

From: Bruce Marshall (bmarsh_at_bmarsh.com)
Date: 11/23/03

  • Next message: Bruce Marshall: "Re: [SLE] USB card reader issues :/"
    To: SLE <suse-linux-e@suse.com>
    Date: Sun, 23 Nov 2003 12:32:57 -0500
    
    

    On Sunday 23 November 2003 12:09 pm, Bernd wrote:
    > I've been seeing the responses on this thread, yet I wonder if I would
    > also have success with rsync.
    >
    > I'm on a standalone, using 9.0 pro.  I would like to backup modified
    > and new files to a seperate partition.  Rsync appears to be for
    > 'sync'ing files over a network.
    >
    > Would it work for me, or is there something better?

    I think rsync is just what you want. Let's assume you want to keep a
    backup of the /home/foo/ directory. So you make a directory
    (hopefully on another drive but for the sake of this example) at /usr/
    local/foo2/

    Then run the command:

    rsync -auvzr --delete /foo/ /usr/local/foo2/

    This is exactly what I use between machines or locally. If to another
    machine I add the parm: -e ssh to use ssh to do the connection.

    The above, run every <once in awhile> will keep /foo2/ in sync with /
    foo/, and it would only copy the new and updated files once you made
    your initial run at it.

    The --delete will delete from /foo2/ anything you have deleted from /
    foo/

    Note the use of the trailing slash. It's important when using rsync to
    copy directories...

    By the way, if you add an 'n' to the mix (-auvzrn) it will show you the
    files that it WOULD copy but it won't actually copy them. For testing.

    man rsync is your friend.

    -- 
    +----------------------------------------------------------------------------
    +
    + Bruce S. Marshall  bmarsh@bmarsh.com  Bellaire, MI         11/23/03 
    12:28  +
    +----------------------------------------------------------------------------
    +
    'If truth is beauty, how come no one has their hair'
    'done in the library?'     -- Lily Tomlin
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Bruce Marshall: "Re: [SLE] USB card reader issues :/"

    Relevant Pages

    • How can I restrict incoming root rsync over ssh to specified command?
      ... will use rsync over ssh to pull certain directories from the ssh ... Here's an example of the command, ... Even with the server locked up in a room with no user ...
      (comp.os.linux.security)
    • Re: supplying password to subprocess.call(rsync ...), os.system(rsync ...)
      ... I want to write a python script that runs rsync on a given directory ... I build the command line string, but when I try to run ... I can't ssh w/o supplying a password. ... If you use ssh public keys, you can also setup the public key so that ...
      (comp.lang.python)
    • Re: rsync over OpenSSH error
      ... Just recently, when trying to sync directories across machines, I've been ... I'm not an expert on rsync or ssh, but this looks like an error returned by ... Use RSA keys. ...
      (Ubuntu)
    • Re: rsync and ssh simple question
      ... possible to tie an SSH key to a specific command on a remote server, ... For instance, when you run rsync over ssh, the local rsync command ...
      (RedHat)
    • Re: unattended file transfer with ssh
      ... disadvantage to using rsync and can't come up with one:) ... To set up ssh, ... $HOME/.ssh/authorized_keys on the remote host. ... On the local machine invoke this command: ...
      (comp.security.ssh)