Score:0

rsync or cp for coping debs ans settings

ug flag

Hi there I've written a script to backup my cache and etc directory. Just trying to decided whether or not to use cp or rsync. It's important that all files are copied with permissions preserved.

sudodus avatar
jp flag
I recommend that you learn `rsync`. It is more powerful (but you can use `cp` too).
Score:0
in flag

rsync is ideal when the files are already partially copied and you just want to copy the changes or resume an aborted copy. rsync also has a lot of options for filtering what to copy and controlling which file metadata gets copied.

cp may be faster if you are copying into an empty directory, or if there are no overlaps between the source and target, as it doesn't have to build a list up front.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.