Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a beginner ... I would be glad if I get help.
On a CentOS V7.5 there are about 250 GB of data. The data should be transferred to a W2012 server in a shared directory. I have these directories mounted. I started the copying with "cp -ax / home / linux_directory / mnt / Windows_direktory". 170 GB were transferred, then the line broke off. Here are 2 questions:
- Do I have to delete the copied 170 GB and start copying again ??
or
- Is there a way to start copying from the break point? if yes how ??
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
-v, --verbose increase verbosity
-S, --sparse handle sparse files efficiently
-i, --itemize-changes output a change-summary for all updates
--out-format=FORMAT output updates using the specified FORMAT
--log-file=FILE log what we're doing to the specified FILE
--log-file-format=FMT log updates using the specified FMT
--password-file=FILE read daemon-access password from FILE
--list-only list the files instead of copying them
--bwlimit=KBPS limit I/O bandwidth; KBytes per second
--write-batch=FILE write a batched update to FILE
--only-write-batch=FILE like --write-batch but w/o updating dest
--read-batch=FILE read a batched update from FILE
--protocol=NUM force an older protocol version to be used
--iconv=CONVERT_SPEC request charset conversion of filenames
--checksum-seed=NUM set block/file checksum seed (advanced)
This will send the file foo.txt to the SERVER (destination) server in the path /home/user/
Note the trailing / that will place all of your files from source without the top level directory of the source. Leave the / off of both source/destination to create directories and sub-directories during the rsync process.
Note that the server need not be specified if the two paths are mounted on the same host. (ie, a local clone/copy or transfer, or one involving a cifs, nfs, or sshfs mount)
I have found remote transfer reliable,even over slow network links. I have found local transfer very reliable. I have had issues at times with local transfer to a remote mounted volume: nfs, cifs, or sshfs is not always a happy camper. In addition, the extra levels of encryption and encapsulation impact performance.
I like the -H option too, to prevent hard linkes files from being copied twice (or more):
Code:
-H, --hard-links preserve hard links
Note that -a does not preserve hardlinks, because finding multiply-linked files is expensive.
You must separately specify -H.
Note too that rsync can only detect hard links between files that are inside the transfer set.
If rsync updates a file that has extra hard-link connections to files outside the transfer,
that linkage will be broken.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.