<<

How To Back Up pCloud to B2 (EC2 + ) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

Daniel Rosehill Blog Linux, writing, and more

ALL GENERAL FREELANCING HOW TO LINUX TECH  MISC  REVIEWS  VIDEO ABOUT  I’M HERE TOO  LINKS  MY WRITING

14 IYYAR 5780 How To Back Up pCloud to B2 (EC2 + rclone) Topics: , storage

To conclude the backup mania for this week, I decided that it would be worthwhile to create a star�ng snapshot of my pCloud drive on B2.

How to: Backup pCloud Cloud-to-Cloud (To B2)

I had to do this somewhat manually because my usual go-to solu�ons

1 of 8 06/07/2020, 21:25 How To Back Up pCloud to B2 (EC2 + rclone) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

for cloud-to-cloud backups weren’t able to offer much help for this par�cular use-case. Namely:

Multcloud does not support Backblaze B2 as a storage archive. Rclone (at the �me of wri�ng) isn’t able to authen�cate a pCloud app protected by 2FA (I raised the issue with the team on their GitHub repository today).

Of course, I could have copied pCloud onto my local and then pushed that up to the cloud via rclone (or used Goodsync), but both these approaches would have entailed a�emp�ng to upload gigabytes’ worth of data over a 2 Mbps uplink.

So — like the Takeout approach I demonstrated a couple of days ago — I chose to improve.

Here’s what did the trick.

1. Bundle Your pCloud Files Into an Archive

Firstly, I used the web UI to bundle my pCloud files into an archive for downloading.

To do this, I selected all the folders at the root level.

2 of 8 06/07/2020, 21:25 How To Back Up pCloud to B2 (EC2 + rclone) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

Then, I clicked on ‘Share Download Link.

And I gave the link a name:

If you loose track of it, you can find all generated download links under ‘Shares’:

3 of 8 06/07/2020, 21:25 How To Back Up pCloud to B2 (EC2 + rclone) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

Copying the link into a browser, I clicked on ‘Download’ and opted for ‘Download as ZIP’:

The download began:

I went into my download manager and copied the unique download URL. Note: if you just a�empt to download the archive directly without sharing the URL will not be unique — and it will not download your file!

4 of 8 06/07/2020, 21:25 How To Back Up pCloud to B2 (EC2 + rclone) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

The URL is forma�ed like this:

The ‘code’ component contains a unique download string.

I started up my EC2 instance and simply ran a ‘wget’ command to download the archive on the remote:

1. wget https://api.pcloud.com/getpubzip?code=24242424

The download didn’t have a file format, so I renamed it backup080520.zip.

The command is simply

1. mv getpubzip?code=2424kj3gg2g backup080520.zip

To verify that what I downloaded was really the archive I unzipped it, verified that the contents were what I was expec�ng, and then deleted

5 of 8 06/07/2020, 21:25 How To Back Up pCloud to B2 (EC2 + rclone) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

the extracted files.

Then I simply used a simple rclone sync command to push the backup up to B2.

1. rclone sync backup080520.zip B2:/pcloudbackups

With an uploaded speed of over 800 Mbps I pushed my archive up in a couple of minutes over the wire (versus what would have taken days from my home connec�on).

And that’s it!

Don’t forget to delete the backup file on the EC2 machine when you’re done (and stop it unless you have a need to keep it running) in order to avoid accruing storage costs (and because there’s no reason to keep it).

POSTED IN AWS, BACKUPS, TECHNOLOGY • TAGGED BACKUPS, CLOUD STORAGE

OTHER LINKS If a backup copy of this Newsle�er

Wri�ng on Other Sites

Ghostwri�ng

Github

Amazon

6 of 8 06/07/2020, 21:25 How To Back Up pCloud to B2 (EC2 + rclone) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

Danbuntu 18.04 (LTS)

Contact Me

Contact Me (Anon)

TOP POSTS

Freelance Wri�ng Pricing: Per Word, Per Hour, or Per Project? And How Much Of Each?

How to: Create a Password-Protected WordPress Staging Environment Using So�aculous And Cloudflare Access

My (Unorthodox) Produc�vity Resolu�on For This Year — Be Less ‘Responsive’!

The #weddingofalife�me PR campaign

Ireland vs. Israel: My Thoughts A�er 5 Years

MY RANDOM INTERESTS

Aliexpress ⁄ Amazon ⁄ Android ⁄ AWS ⁄ Backblaze ⁄ backups ⁄ Clonezilla ⁄ Cloud storage ⁄ cooking ⁄ CRM ⁄ cybersecurity ⁄ email ⁄ Facebook ⁄ Freelancing ⁄ GPUs ⁄ Gsuite ⁄ Hardware ⁄ Host4Geeks ⁄ hos�ng ⁄ Ireland ⁄ Israel ⁄ kaizen ⁄ LinkedIN ⁄ Linux ⁄ marke�ng ⁄ Mental Health ⁄ Monitors ⁄ Mul�monitor ⁄ Mul�ple monitors ⁄ OSINT ⁄ phishing ⁄ Produc�vity ⁄ Quora ⁄ recipes ⁄ Reddit ⁄ reviews ⁄ sales ⁄ shopping ⁄ technology ⁄ TransferWise ⁄ Ubuntu ⁄ WhatsApp ⁄ Worksta�ons ⁄ wri�ng ⁄ Zoho ⁄

7 of 8 06/07/2020, 21:25 How To Back Up pCloud to B2 (EC2 + rclone) | Daniel R... https://www.danielrosehill.co.il/myblog/how-to-back-...

FIND POSTS ABOUT:

Search … 

8 of 8 06/07/2020, 21:25