Earlier quoted context omitted.
> It can only sync data between devices that are operating of course. What does this mean? Does my desktop always need to be on? Or, can I change a file on my laptop, then, when I turn on my desktop, get those changes on the same file?
It means you need both computers to be on at the same time to sync between them. Alternatively you can spend $5/mo for a server to handle the syncing between laptop and desktop in the way the grandparent described.
My one-liner Linux Dropbox client
121–130 of 165 posts
Re: My one-liner Linux Dropbox client
#122while true; do find $ORG_DIR | entr -d -r rclone sync -v $ORG_DIR $REMOTE:org; done
Re: My one-liner Linux Dropbox client
#123.... Except, a file added to your dropbox will only appear in your local box the next time you create a local file -- there is nothing to wake the local entr when a file is remotely added to dropbox.
Could write a little script to add then delete a temp file on some chron job or at login or something.
Re: My one-liner Linux Dropbox client
#124It's kind of funny to replace a proprietary client for a proprietary service with FOSS tools when you could completely replace Dropbox with FOSS alternatives instead and enjoy Freedom: Syncthing works very well, and while syncing is not its main feature you could also work with nextcloud.
If only there was a platform agnostic, standards-based, cloud platform that you could point any old SSH tool at. Imagine if such a provider existed and was running on top of ZFS and maintained the current, stable version of 'borg[1]' on the server side ... Probably too much to ask. [1] https://www.stavros.io/posts/holy-grail-backups/
Re: My one-liner Linux Dropbox client
#125In that setup entr only watches files that existed when systemd service was first started. So new files won't trigger backup. Something like this should work: while true; do find $ORG_DIR | entr -d -r rclone sync -v $ORG_DIR $REMOTE:org; done
I've never used it myself, but I know systemd has file watching built in. I think using `PathModified=/path/to/org` would also eliminate the need for entr [1].
[1] https://www.freedesktop.org/software/systemd/man/systemd.pat...
Re: My one-liner Linux Dropbox client
#126In that setup entr only watches files that existed when systemd service was first started. So new files won't trigger backup. Something like this should work: while true; do find $ORG_DIR | entr -d -r rclone sync -v $ORG_DIR $REMOTE:org; done
That's constantly polling the filesystem, isn't it? I've never used it myself, but I know systemd has file watching built in. I think using `PathModified=/path/to/org` would also eliminate the need for entr [1]. [1] https://www.freedesktop.org/software/systemd/man/systemd.pat...
The systemd solution may be even better, though it seems there is no way to ignore changes in temporary files that emacs likes to create.
Re: My one-liner Linux Dropbox client
#127It's kind of funny to replace a proprietary client for a proprietary service with FOSS tools when you could completely replace Dropbox with FOSS alternatives instead and enjoy Freedom: Syncthing works very well, and while syncing is not its main feature you could also work with nextcloud.
If only there was a platform agnostic, standards-based, cloud platform that you could point any old SSH tool at. Imagine if such a provider existed and was running on top of ZFS and maintained the current, stable version of 'borg[1]' on the server side ... Probably too much to ask. [1] https://www.stavros.io/posts/holy-grail-backups/
Re: My one-liner Linux Dropbox client
#128Earlier quoted context omitted.
Thanks, didn't know systemd can do that [0]! I must grudgingly admit that it seems to be quite useful, though I still don't like having a single app doing all that stuff. But that's off topic... :) [0] https://blog.andrewkeech.com/posts/170809_path.html
Both path units and entr use the inotify kernel API on Linux. If your needs get more complex, there are python, perl, etc, APIs for the inotify libraries. Also, if you have an older linux distro that predates inotify(), there's similar functionality within auditd that will log changes to a file with a tag of your choosing, then you can tail the file.
Re: My one-liner Linux Dropbox client
#129Earlier quoted context omitted.
It's FUD. ext4 with LUKS, which is what pretty much everyone is using on a desktop, is still working and the client supported.
In fairness, it's pretty difficult (read: impossible) to enable full-disk encryption on an NVME drive (read: most Ultrabooks including the Dell XPS "Developer Edition.") https://www.dell.com/community/Linux-Developer-Systems/XPS-1...
Re: My one-liner Linux Dropbox client
#130Dropbox is a no no for one simple reason - there is no end to end encryption. Unless I don't know something? I wouldn't want a disgruntled employee to fiddle with my files.
Is there any Dropbox-like service that lets you control your own private keys, without resorting to the ugliness of uploading an encrypted image to Dropbox?