Comments (11)
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.
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.
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.
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.
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.
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.
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.
I've made a short screen capture video to show the difference between Sync and Copy when using rClone. Hope this helps:
Regards,
Zeshan
from rclone.
@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.
@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.
Trashing files instead of deleting them was done in #82 so I think this is all done now
from rclone.
Related Issues (20)
- please ignore HOT 3
- Support Permanent delete in OneDrive/Sharepoint
- Recursively lock/unlock files from remote:path in Google Drive
- Feature request: Hasher, copy hashes on server-side copy (maybe simple copy too)
- --files-from doesn't seem to play nicely with --links
- `rclone ls` does not exit with an error code on various cloud backends when file doesn't exist HOT 2
- Hasher: trust cached sum
- Git backend? HOT 1
- Windows: Destination Encoding characters are improperly escaped HOT 4
- OAuth tokens fail to refresh when they are provided as a JSON blob (for native-app clients) HOT 2
- HDFS remote fails to copy file with " Received error: unexpected EOF" HOT 4
- Implement WebHDFS to acces remote HDFS storage HOT 4
- Poor copy/sync speed from a NFS-mounted directory to Ceph S3 bucket HOT 3
- WebAssembly Build Inquiry HOT 1
- Access "Photos" folder in Proton Drive
- ListJSON failed to load config for crypt remote HOT 2
- Canβt move and rename inside linkbox mount HOT 2
- Wrong encoding type in response when using "serve s3" - should not be url-encoded HOT 4
- MacOS and Linux doesn't support space character on folder name HOT 1
- Problems with pikpak storing hash after uploads HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rclone.