I would like to transfer files to SCP from local ("Server A") to remote ("Server B") using SCP's -pr
option to maintain file attributes per directory.
At this time, I would like to transfer only files that do not exist on server B, and also transfer only files whose update date and time are newer than those on server B.
Is there any good way to do this?
Also, if SCP is difficult, is there any other good way?
By the way, rsync is not available because it is not in the other server.
I would appreciate it if you could give me some advice.
Thank you for your cooperation.
It's been solved, so I'll leave it here.
This time, we installed SSHFS to mount and copy the remote server to the local server.
Incidentally, it may be a problem with this environment, but if you don't add readdir_ino
when mounting with sshfs, the permission of the directory will not be maintained when copying.
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
581 PHP ssh2_scp_send fails to send files as intended
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.