![]() I think you want to compress it, and I suggest that you use tar for that purpose and create a tarball. If it looks good, you can let it do the transfer with the following command (remove the n for 'dry run') rsync -av path-to-target-directoryĪfter the transfer, you can do what you want with the copy in the target directory. Please notice the trailing slash after the source directory. So, in the client (your Mac computer), run rsync -avn path-to-target-directory In your case the source is in the server, and you run via the ssh connection. n makes it a 'dry run', just showing what it 'wants to do' rsync -Havn source/ target -v 'verbose' creates output of all files to be copied with -n and all files copied in the real case (without -n).-a 'archive' makes a copy that suits backup or synchronizing. ![]() -H takes hard links into account (and avoids double transfers/copies) if there are no hard links, you should remove this option.I like the following command line where the option It is straightforward to use rsync, if you have Ubuntu at both ends of the connection, and I checked that there is an rsync version also in MacOS. via a network connection to a server or between servers. ![]() It can copy files and/or directory trees locally and via a network.Rsync is a powerful copy tool, and it has a built-in check, that the transfer is correct. I don’t have physical access to the server. To the directory that you want to compress. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |