Tag Info

New answers tagged

1

The rsync manual warns about this scenario (section “Include/exclude pattern rules”): this won't work: + /some/path/this-file-will-not-be-found + /file-is-included - * This fails because the parent directory "some" is excluded by the '*' rule, so rsync never visits any of the files in the "some" or "some/path" directories. One solution is to ask ...


1

Use the following command: rsync -av --include-from=DirectoriesToCopy.txt --include /data/ --exclude='/data/*' --exclude='/*/' / /media/MyDestination/ You need to include /data/ explicitly, you could also have added that to the list in the file. Then exclude all other directories (order is important with includes/excludes). Note that your usage of -r was ...


0

Try: find source -type f -exec cp --backup=numbered -- {} container/ \;


0

@jofel and all others, Thank you very much for your kind assistance. I think device has a customized os installed as it recognized some specific linux commands only. netcat is not recognized by the device. However today I got success to transfer the file using tftp command. I successfully replaced desktop.jpg file with this command. What I did is, created ...


1

Your theory sounds right to me. Each time through the for loop when you invoke rsync, it's reconnecting to the server and causing you to be re-prompted. Rather than loop through the file, ~/list using for you could give this list directly to rsync using the --files-from= switch. Example $ rsync --partial -z --files-from=/some/list server:/some/location/ ...


3

This depends which tools are installed on the client device / supported by the kernel. Possible methods for file transfer (unordered): ssh / sftp encoding binary files into displayable format with base64/uuencode and then copy from/into your telnet terminal window. over a simple tcp connection with netcat or socat or with bash and /dev/tcp upload / ...



Top 50 recent answers are included