views:

19

answers:

2

I'm trying to backup a folder (e.g) /web/sites to /backups/websites and retain attributes, etc.

cp -Rp retains the information, yet isn't incremental

rsync -va seems to be great for incremental yet doesnt retain the attr/owner

Is it possible to tar, and pipe it through and untar whilst retaining attr/owner, if so, how can I do this? or is there a better solution?

A: 

cp -pur seems to do the trick!

Paul
A: 

Going further than just an incremental copy, there's glastree (website/github): "the poor mans daily snapshot".

Kjetil Jorgensen