Advertisement: Linux VPS for $4/month - based on OpenVZ, credit card accepted, automatic setup.
+ Post New Thread
Results 1 to 3 of 3

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

  1. #1
    Fli
    Fli is online now
    Administrator Fli's Avatar
    Join Date
    Mar 2013
    Posts
    2,611

    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" [email protected]:/remote/path/

    copy from remote server
    rsync -au "ssh -p sshport" [email protected]:/remote/path/ /local/source/path/

  2. #2
    Junior Member AlexCross's Avatar
    Join Date
    Oct 2020
    Posts
    6


    Is this useful / helpfull? Yes | No
    login as new user: ssh [email protected]

  3. #3
    Junior Member austinhols's Avatar
    Join Date
    Nov 2021
    Posts
    2


    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.

+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 09-06-2017, 03:49 PM
  2. Replies: 0
    Last Post: 03-15-2017, 11:24 PM
  3. Replies: 0
    Last Post: 09-17-2016, 11:09 AM
  4. Replies: 0
    Last Post: 11-16-2014, 07:40 PM
  5. Replies: 0
    Last Post: 09-06-2014, 03: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