[Cin] OT: cp -r vs cp -R recursive copy as backup
Andrew Randrianasulu
randrianasulu at gmail.com
Wed Oct 23 17:51:01 CEST 2024
ср, 23 окт. 2024 г., 18:38 Terje J. Hanssen via Cin <
cin at lists.cinelerra-gg.org>:
> From my past Unix & alike experience with Cromix/SVR5/BSD and
> SunOS/Solaris, I seem to remember faintly that there was a difference
> between "cp -r" and "cp -R".
> Both copied recursively directories and files, while -R (possibly) also
> followed symlinks and copied their targets.
>
> On SUSE Linux (which first version 1993 is told to orginate from the most
> Unix like Slackware), the man pages for cp just say
>
> -R, -r, --recursive
> copy directories recursively
>
> A previous thread on Stack Exchange, "Difference between cp -r and cp -R
> (copy command)", mentions additionally POSIX defined and implementation
> dependency.
>
> https://unix.stackexchange.com/questions/18712/difference-between-cp-r-and-cp-r-copy-command
>
> So I am used with "cp -R" for complete directory backup purpose; else I
> use more effective "rsync" incremental backups to portable (USB) disks.
> .
> What do you use and think here about this?
>
cp -ar here ....
also scp -a / scp -r between machines
rsync -avz /data/data/com.termux/files/home/storage/downloads/
guest at 192.168.1.100:/home/guest/K38_sdcard1/Documents/
as one backup string I put in file for periodical manual execution.
>
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20241023/4c016a27/attachment-0001.htm>
More information about the Cin
mailing list