You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Google Drive: Add flag for keepRevisionForever #1525
This would be really useful for certain documents where I may need to revert to a previous version.
While I do of course have other backups, sometimes it's just easier to revert via Drive.
Would it be possible to add this?
Thanks.
What is your rclone version (eg output from rclone -V)
1.36
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Win10, 64
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy file gd: --drive-keep-revision
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
2017/07/12 09:45:38 Fatal error: unknown flag: --drive-keep-revision
Implementing keepRevisionForever requires using the v3 drive API. #320
Once we are using the v3 api, it's pretty easy to add a flag for it. (Two lines of code).
Activity
jahands commentedon Jul 12, 2017
Looks like it's only available in the golang v3 drive package: https://godoc.org/google.golang.org/api/drive/v3#FilesCopyCall.KeepRevisionForever
ncw commentedon Jul 13, 2017
This was discussed in the forum and the conclusion was the v2 API could pin things which is nearly as good.
jahands commentedon Jul 13, 2017
Ok, reading the Migration to v3 guide, it looks like pinned and keepRevisionForever are equivalent.
I think the flag should be
--drive-keep-foreveror--drive-keep-revision-foreverso it matches the flag in the v3 API.Cubox commentedon Aug 1, 2017
Implementing keepRevisionForever requires using the v3 drive API. #320
Once we are using the v3 api, it's pretty easy to add a flag for it. (Two lines of code).
jahands commentedon Feb 7, 2018
Does #2007 mean this could possibly get added soon? :)
ncw commentedon Feb 7, 2018
@jahands don't see why not!
lewapm commentedon Jun 6, 2018
I would like to solve this issue.
ncw commentedon Jun 6, 2018
That's great @lewapm let me know if you need help with anything.
backend/drive: add flag for keep revision forever - fixes rclone#1525
backend/drive: edit drive.go file - fixes rclone#1525
backend/drive: change tabs into spaces - fixes rclone#1525
backend/dirve: add KeepRevisionFuncion in upload, update, putunchecke…
backend/drive: delete newline -fixes rclone#1525
test.log; fs/test_all.log: remove files - fixes rclone#1525
ncw commentedon Jun 17, 2018
Thanks to @lewapm this is now done in this beta
https://beta.rclone.org/v1.42-004-g84424986/ (uploaded in 15-30 mins)
Which will be in the latest beta from now on and v1.43
xponentia commentedon Aug 14, 2018
@lewapm Thanks so much I was just looking for this feature and looking forward to testing it out.
backend/drive: add flag for keep revision forever - fixes rclone#1525