google cloud storage - How to restore an entire directory with gsutil rsync, while excluding old deleted files? -
rsync -d option deletes files under dst_url not found under src_url.
if -d option not used, , source directory destroyed, restored data include old deleted files.
if -d option used , user wants retrieve old deleted file, there no way restore gcs.
is there way gsutil rsync can restore entire directory, excluding old deleted files?
, @ other times, restore old deleted file?
there 2 different ways samba rsync can this:
1 rsync --link-dest.
each rsync new empty time stamped dir.
files have not changed hard linked previous run.
result many time stamps complete trees can restored @ time of run.
to restore entire directory, copy latest backup (old deleted files not copied).
restore deleted file, copy file latest backup contains file.
2 rsync --backup-dir.
each file replaced or deleted instead moved backup directory.
to restore entire directory, copy latest backup (old deleted files not copied).
restore deleted file, copy file backup directory.
Comments
Post a Comment