I want make daily backups on my dropbox it works fine with cron but i want make it like this
today i got folder test on my dropbox and tomorrow i want folder test1 and next tomorrow folder test2 instead overwriting test folder so i can get backup from 4 days instead yesterday (i dont know if u guys understand me my english is not perfect sorry)
What is your rclone version (output from rclone version)
rclone v1.51.0
os/arch: linux/amd64
go version: go1.13.7
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 18.10 64bit
Which cloud storage system are you using? (eg Google Drive)
Dropbox
The command you were trying to run (eg rclone copy /tmp remote:tmp)
the first time you run the above command rclone will copy all local files from /path/to/local/folder to dropbox:/test/current/
then you modify a local file such as /path/to/local/folder/file.txt
then you run the command again and rclone will
a. move the file dropbox:/test/current/file.txt to dropbox:/test/archive/date/file.txt
b. copy the /path/to/local/folder/file.txt to dropbox:/test/current/file.txt
It is a little hard to understand you - but is "versioning" what you are trying to make?
So that can "go back in time" to find an old version of a file?
Then --backup-dir is a function you will want to use. Please read the link asdffdsa provided.
Asdffdsa and me actually made a script that does this (timestamped versioning) for someone else:
Unfortunately this is batch-script (for windows), but the rclone commands would be basically the same, and it would not be so hard to translate this to bash-script for Linux. You can just use our script as an example if you know bash.
That script creates dated versioning, so that you can go back to any date where a file was "deleted" or "overwritten" and recover it - because instead of actually deleting it will be moved to a timestamped folder.
Please let me know if I need to explain in simpler english, or if I have misunderstood what you need
Why do you want also the unchanged files in dated versioning?
This is very possible to do, but you would be re-saving a copy of all the data every time a change was made. This would be incredibly inefficient use of space - and very impractical unless maybe it is only small text-files?
It would make much more sense to just reconstruct the full data from a spesific time - and when you have the up-to-date files + copy of all changes you can do this. Saving hundreds of copies of identical files would just be wasteful and slow.