Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I have a linux machine that is connected to my internal network which I use to keep backups on. Is there a way to keep 2 folders (one on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2004
    Location
    Malta
    Posts
    41

    Synchronizing folder


    Hi,

    I have a linux machine that is connected to my internal network which I use to keep backups on. Is there a way to keep 2 folders (one on the backup linux box and one on the linux machine I use as my workstation) synchronized (i.e. any file written/deleted/modified in on folder is automatically reflected in the other folder)? The backup linux machine already has samba set up on it.

    Thanks
    is-serp

  2. #2
    Linux Newbie
    Join Date
    Nov 2004
    Location
    New York
    Posts
    150
    I think the cp command has an option for update mode, where it won't overwrite destination files that have been modified after the source file. You could probably write a script to execute that command for a directory, in both directions.
    \"Nifty News Fifty: When news breaks, we give you the pieces.\" - Sluggy Freelance

  3. #3
    Just Joined!
    Join Date
    May 2004
    Location
    Malta
    Posts
    41
    Thanks. I'll check that out.

    is-serp

Posting Permissions

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