Skip to main content
Tweeted twitter.com/StackUnix/status/930286576881623045
Fixed wording as per comment
Source Link
Chris Davies
  • 128.1k
  • 16
  • 179
  • 324

I want to rsync with the delete option so that the folders remain identical copies, also after I have deleted files and folders from the source.

The problem is there might be something on the destination folder that isn't meant to be deleted. In that case, what I would like to happen is that rsync deletion proceeds but the files that are to be overwrittenremoved actually get stored in some garbage folder instead of being removed from the filesystem.

That way I could maintain identical folders without the fear of accidentally overwriting something.

How would it be best to go about achieving such a functionality?

I want to rsync with the delete option so that the folders remain identical copies, also after I have deleted files and folders from the source.

The problem is there might be something on the destination folder that isn't meant to be deleted. In that case, what I would like to happen is that rsync deletion proceeds but the files that are to be overwritten actually get stored in some garbage folder instead of being removed from the filesystem.

That way I could maintain identical folders without the fear of accidentally overwriting something.

How would it be best to go about achieving such a functionality?

I want to rsync with the delete option so that the folders remain identical copies, also after I have deleted files and folders from the source.

The problem is there might be something on the destination folder that isn't meant to be deleted. In that case, what I would like to happen is that rsync deletion proceeds but the files that are to be removed actually get stored in some garbage folder instead of being removed from the filesystem.

That way I could maintain identical folders without the fear of accidentally overwriting something.

How would it be best to go about achieving such a functionality?

grammar tweaks
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

Rsync rsync with delete option, but preserve whatswhat's deleted

I want to rsync with the delete option so that the folders remain identical copies, also after iI have deleted files and folders from the source.

The problem is there might be something on the destination folder that isn't meant to be deleted. In that case, what I would like to happen is that rsync deletion proceeds but the files that are to be overwritten actually get stored in some garbage folder instead of being removed from the filesystem.

That way I could maintain identical folders without the fear of accidentally overwriting something.

How would it be best to go about achieving such a functionality?

Rsync with delete option but preserve whats deleted

I want to rsync with the delete option so that the folders remain identical copies, also after i have deleted files and folders from the source.

The problem is there might be something on the destination folder that isn't meant to be deleted. In that case, what I would like to happen is that rsync deletion proceeds but the files that are to be overwritten actually get stored in some garbage folder instead of being removed from the filesystem.

That way I could maintain identical folders without the fear of accidentally overwriting something.

How would it be best to go about achieving such a functionality?

rsync with delete option, but preserve what's deleted

I want to rsync with the delete option so that the folders remain identical copies, also after I have deleted files and folders from the source.

The problem is there might be something on the destination folder that isn't meant to be deleted. In that case, what I would like to happen is that rsync deletion proceeds but the files that are to be overwritten actually get stored in some garbage folder instead of being removed from the filesystem.

That way I could maintain identical folders without the fear of accidentally overwriting something.

How would it be best to go about achieving such a functionality?

Source Link
john-jones
  • 1.8k
  • 4
  • 25
  • 41

Rsync with delete option but preserve whats deleted

I want to rsync with the delete option so that the folders remain identical copies, also after i have deleted files and folders from the source.

The problem is there might be something on the destination folder that isn't meant to be deleted. In that case, what I would like to happen is that rsync deletion proceeds but the files that are to be overwritten actually get stored in some garbage folder instead of being removed from the filesystem.

That way I could maintain identical folders without the fear of accidentally overwriting something.

How would it be best to go about achieving such a functionality?