Advertisement: Linux VPS from $4/month - contact support for custom offer.
+ Post New Thread
Results 1 to 4 of 4

Thread: Copy file from/to remote server via SSH and only update files & overwrite old?

  1. #1
    Administrator
    Join Date
    Mar 2013
    Posts
    2,725

    Copy file from/to remote server via SSH and only update files & overwrite old?

    Hello,

    what are ways to copy files/folders from/to remote Linux server and prevent overwriting new files of same name by old files of same name.

    I found scp can copy, but cant prevent new files being overwriten by older.

    But rsync has option -u (update):
    Code:
    –update
    Update files at the destination ONLY if the source copy has been modified more recently
    so i can use?
    rsync -au ?

    copy to remote server
    rsync -au /local/source/path/ "ssh -p sshport" remoteuser@remoteip:/remote/path/

    copy from remote server
    rsync -au "ssh -p sshport" remoteuser@remoteip:/remote/path/ /local/source/path/

  2. #2


    Is this useful / helpfull? Yes | No
    login as new user: ssh newusername@IP

  3. #3


    Is this useful / helpfull? Yes | No
    Thx for info! Was searching for it!
    Hi, I really want to play live teen patti with sensational money. I really want quite noteworthy site.

  4. #4


    Is this useful / helpfull? Yes | No
    Thank you. It turns out it's that simple

+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 09-06-2017, 02:49 PM
  2. Replies: 0
    Last Post: 03-15-2017, 10:24 PM
  3. Replies: 0
    Last Post: 09-17-2016, 10:09 AM
  4. Replies: 0
    Last Post: 11-16-2014, 06:40 PM
  5. Replies: 0
    Last Post: 09-06-2014, 02:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam