Giter Site home page Giter Site logo

Comments (11)

ncw avatar ncw commented on May 13, 2024

The documentation is a bit confusing - sorry! Your interpretation isn't correct you'll be glad to know. There is another ticket about this #39 and here is the new suggested wording for the docs

Sync the source to the destination, changing the destination only.  Doesn't transfer
unchanged files, testing first by modification time then by
size.  Destination is updated to match source, including deleting files if necessary.
Since this can cause data loss, test first with the --dry-run flag.

So your example would become

  • Create a bunch of files
  • Copy a bunch of files to Drive
  • Make a new file
  • Run sync <local> <remote>
  • New file is copied to Drive
  • Delete the new file locally
  • Run sync <local> <remote>
  • New file is deleted from Drive

from rclone.

dennybaa avatar dennybaa commented on May 13, 2024

When you delete new file locally, is the file placed into trash bin or deleted right away?
I mean will I be able to the deleted file in GoogleDrive's bin?

from rclone.

ncw avatar ncw commented on May 13, 2024

The file is permanently deleted using the delete method

If you wanted the file to go to the trash then I could use the trash method instead. Maybe this should be an option?

from rclone.

dennybaa avatar dennybaa commented on May 13, 2024

I'll try to redefine the question a bit. I was interested in delete operation in the context of syncing. So when I delete a file locally how would sync behave? Completely remove a file on the remote GDrive or place it into bin.

from rclone.

ncw avatar ncw commented on May 13, 2024

In the context of syncing, when you delete a file locally

rm local/file

Then sync

rclone sync local drive:local

The copy on drive will be deleted permanently, not put into the trash / bin.

I could make it put it into the trash / bin with an option - either a command line flag, or an option when the drive remote is set up.

from rclone.

dennybaa avatar dennybaa commented on May 13, 2024

I think it's generally a good idea useful for users. For example, grive as I've heard works this way, but it's already dead project anyway.

from rclone.

ncw avatar ncw commented on May 13, 2024

I'm fixing the docs in #39

I'll turn this ticket into a feature request ticket for trashing files instead of deleting them.

from rclone.

zeshanb avatar zeshanb commented on May 13, 2024

I've made a short screen capture video to show the difference between Sync and Copy when using rClone. Hope this helps:

https://github.com/zeshanb/rclone-video-tutorials/blob/master/docs/static/videos/Using-rClone-difference-between-copy-and-sync.mp4?raw=true

Regards,
Zeshan

from rclone.

ncw avatar ncw commented on May 13, 2024

@zeshanb Wow that is amazing - thanks! I'd like to put it up somewhere so I can embed it in the rclone website - I'll send you an email to discuss

from rclone.

zeshanb avatar zeshanb commented on May 13, 2024

@nick Thanks. I tried to make these unbranded and generic as possible, so
anyone can use these. These are h264 videos and can easily be embedded
using html5 video tag. Hope it's a good addition to rClone docs.

https://github.com/zeshanb/rclone-video-tutorials

On Mon, Jun 1, 2015 at 3:59 AM, Nick Craig-Wood [email protected]
wrote:

@zeshanb https://github.com/zeshanb Wow that is amazing - thanks! I'd
like to put it up somewhere so I can embed it in the rclone website - I'll
send you an email to discuss

β€”
Reply to this email directly or view it on GitHub
#44 (comment).

from rclone.

ncw avatar ncw commented on May 13, 2024

Trashing files instead of deleting them was done in #82 so I think this is all done now

from rclone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.