Find the answer to your Linux question:
Results 1 to 2 of 2
i need some help creating a script to copy files in a directory (excluding any directorys that are in the same location) to a directory of my choosing and if ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    Help with backups

    i need some help creating a script to copy files in a directory (excluding any directorys that are in the same location) to a directory of my choosing and if the directory doesnt exist, i need an option to create it

    any assistance is most appreciated,

    Thanks

  2. #2
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    rsync is a good tool for this kind of thing:

    rsync -av <source directory> <destination directory>

Posting Permissions

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