New answers tagged

0

I assume the other device is the same ip-camera model, with an identically sized HDD/memory component. Then you could use dd to make an image of the whole HDD. Since stuff in dev, proc, sys and other such directories is not on the drive but in virtual memory, you don't need to explicitly copy it, it will be populated at boot. With something like: cat /dev/...


1

I had this problem in a script (I don't know if it's your case). I was because I used this command in a script and I was using sh instead of bash. check the shebang at the beginning of your script.


0

Since rsync version 3.1.0, a --remote-option argument (or its short-form -M) is available to pass arguments through to the server. For example, giving a client the command: $ rsync -av -M --customarg1=value1 -M --customarg2=value2 file1 file2 user@server:some/path will result in the server command receiving the arguments prefixed with -M, but without the -...


0

polemon is correct; rsync doesn't have an option to delete files as it copies them, afaik, and it's too late now in any event. All you can do at this point is make a list of the files you've already copied and then go to the server to delete them. If it were me, I would do these steps: $ : get the list of files that were copied so far and their sizes $ cd ...


4

Perhaps you could use the -M option (long version --remote-option), which does not seem to be checked by the client rsync. -M-xxxx is passed to the remote with the -M stripped off as -xxxx. You can easily play with this using -M-M-xxxx, which is ignored by client and remote: rsync -av -M-M-myvar=val /tmp/test/ remote:test/ If your server front-end ...


3

This isn't exactly pretty, but it could all be hidden away in a script: SSH can send arbitrary environment variables across the tunnel; both the client and server need to be configured to allow it. The client is easily done with the -o option; the server you'd have to do in your sshd_config file. Accepting arbitrary ones is a bad idea, but something like ...


0

You can use the -v (verbose) and -n (dry run) parameters to the rsync command to simulate and view file changes. rsync -van src_dir/ dest_dir/ --delete Note that rsync prior to 1.0.1 does not work well when the file exists in both destination dir and link-dest dir.


2

Use the gui to mount the encrypted directory, then login to the synology as root over ssh and type mount. You will see a line like /volume1/@mycryptdir@ on /volume1/mycryptdir type ecryptfs (rw,relatime,ecryptfs_fnek_sig=88...,ecryptfs_sig=88...,ecryptfs_cipher=aes,ecryptfs_key_bytes=32) This shows your directory /volume1/mycryptdir is implemented on an ...


1

The -a option (--archive) implies the -t option (--times, "preserve modification times"). You may negate this option using either --no-t or --no-times after -a: rsync -a --no-t ... (untested)


2

Difference with sudo could be due to the extract below from Documentation/filesystems/vfat.txt. (Requires knowledge that your target filesystem is of type vfat & who owns the directory^Wfilesystem - determined by mount option in the case of vfat). I went ahead and posted this anyway because it shows how important the filesystem types are. The general ...


0

User Chris at Webhosting Talk writes: rsync compares the files at each end and transfers only the changed parts of changed files. When you transfer files the first timeo it behaves pretty much like scp, but for a second transfer, where most files are unchanged, it will push a lot less data than scp. It's also a convenient way to restart failed ...


2

Yes, rsync is your best bet. Something like this should work: rsync -vr --size-only --times <source> <dest> --size-only tells rsync not to copy the files again, --times tells it to update timestamps.


2

Rsync synchronizes files unless it is able to decide that they're the same without comparing their contents. It might synchronize a file and realize that there aren't any differences, if it wasn't able to tell that the files are identical without checking the contents. By default, rsync decides that two files are identical (and thus skips reading their ...


0

see http://www.linuxquestions.org/questions/linux-software-2/how-to-control-file-order-in-rsync-871930/ - it looks like it can't be done except by using multiple rsync statements, sorry.


3

rsync will report changes for permissions differences timestamp differences content (and filesize) differences In comments, @roaima pointed out that there is an option to give a summary of these changes, in the rsync manual page: -i, --itemize-changes output a change-summary for all updates You may find it useful, though the summary is terse and ...


1

The usual method is (writing from memory): NEWBACKUP=`date +%s` # or some other format cp -al "$OLDBACKUP" "$NEWBACKUP" rsync -aH --delete "$SOURCE" "$NEWBACKUP" Check out Easy Automated Snapshot-Style Backups with Linux and Rsync There is also a --link-dest option to rsync that I've never investigated properly.


1

expect is written in the tcl language, so strings containing whitespace must be quoted with double-quotes " not single quotes '. So replace your spawn line with spawn rsync -arvz -e "ssh -p 1690" --protect-args --progress /home/pappu/ "backup@xx.xx.xx.xx:/volume1/56 - Backup Server/pappu" Also, as mentioned by @steeldriver, a carriage-return is written \...


2

It's a general question. Does compression and decompression at endpoints improve the effective bandwidth of a link? The effective (perceived) bandwith of a link doing compression and decompression at endpoints is a function of: how fast you can compress (your CPU speed) your network's actual bandwidth The function is described with this 3D graph, which ...


0

tl;dr Over slow transfer links, compress, otherwise don't. Below is a compression speed test, a link to a bandwidth conversion tool and some info. Using compression with rsync will only speed things up if the intermediate link is "slow enough", i.e. if the machine in one end is able to produce a compressed data stream quick enough to saturate the ...



Top 50 recent answers are included