Hi,
I’m testing insync before purchase on Ubuntu 20.04 LTS, for a Google Drive.
What I’m trying to do is pretty simple, locally I have
GD-base-dir
━━━━━┳━━━━━
┣━━━━━━━ 2-way-sync-dir / files...
┗━━━━━━━ 1-way-sync-dir / files...
(the GD-base-dir has 2 dirs, one for 2-way sync and another one for 1-way)
The 2-way-sync dir seems to be working
- local files are copied remotely, and remote files are copied locally
- removing a file on either side remove it on the other side
But to make the 1-way-sync dir being “1 way”, I’m not sure what to do.
I clicked “Unsync” (as it’s the only option relevant available), then
- the 1-way-sync dir appears on the drive and in insync…
- but it disappeared from my local drive, which is probably how it supposed to work?
So to copy backups and stuff that only need to remain Google side,
- the
1-way-sync
dir must actually be 2-way (for it to remain at least locally) - then I copy the 1-way stuff into the
1-way-sync
dir - and all files in
1-way-sync
dir have to be “Unsynced” to be 1-way
Exemple: the 1-way-sync
dir is set 2-way ; then I copy
-
backup1.tar.gz
,backup2.tar.gz
, …backupN.tar.gz
, into the1-way-sync
dir - then I would have to mark (manually) all of the
1-way-sync
dir content as “Unsync” to have get them on Google side (and not locally anymore)
Is that correct?
In that case, that could work, but since I’d like to automatize the process (backup, 1-way …) in a bash script, the questions are (if the above is correct)
-
is there a way to mark (Unsync) the
1-way-sync
dir files from the command-line? (likeinsync unsync /home/me/google-drive/1-way-sync/*
)? -
otherwise, is there a way to tell insync that
1-way-sync
is a dir which content is to be 1-wayed, but not the dir itself (or it disappears locally, and the process cannot be automatized)?Regards