UnderNet Blogger

Minimalist blog for random writing / Rushd Bitar

pCloud on Linux

May 14, 2020 — ~rushd

After my previous post about my confusion in deciding where to save my files in order not to lose them, I found that pCloud is very useful under linux. It's also very easy to setup. The installation is straight forward as well.


What do I do with pCloud?

pClound mounts a drive on your directory "~/pCloudDrive" and then you access all your files remotely from command line interface without the need of sshfs. It's just permanently there in front of you just like any home folders.

A useful command you can use is rsync . This is to sync two folders on your computer. For example, I synced my public html file to pCloudDrive for backup so I don't lose my blog writings. You can also make a cron job to make timed backup whenever you need.

Cron job works, but you can also use this script to make it sync whenever changes occurs:

~~~

while inotifywait -r -e modify,create,delete,move /directory; do rsync -avz /directory /target done

~~~