You are not logged in.

#1 2018-06-19 18:19:23

BelowZero
Member
Registered: 2018-03-13
Posts: 59

[Solved] Error Setting up Borg for Backups

I'm trying to set up Borg for backups to a micro SD card I have in my computer.  I'm following the recommended instructions to initialize a repo:

borg init --encryption=repokey /path/to/repo

In my case, this command looks like this:

borg init --encryption=repokey /dev/mmcblk0p2

But it keeps returning this error, even though I just formatted the micro SD card and there are no files on it.

There is already something at /dev/mmcblk0p2.

Am I doing something wrong?  I found the location of the micro SD card from the "disks" program, and then selected the correct partition to get the path.  I've never referenced a micro SD card (or external drive) from within a terminal before.

Last edited by BelowZero (2018-06-20 13:57:34)

Offline

#2 2018-06-19 18:58:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Error Setting up Borg for Backups

borg documentation wrote:

Repositories are filesystem directories acting as self-contained stores of archives

You are pointing to a partition, not a directory.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-06-20 01:02:19

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Re: [Solved] Error Setting up Borg for Backups

I had considered that, and created a folder on the drive that I pointed to in the path.  It gave me the same error.

Offline

#4 2018-06-20 11:15:58

waitnsea
Member
From: France
Registered: 2013-02-10
Posts: 57

Re: [Solved] Error Setting up Borg for Backups

BelowZero wrote:
There is already something at /dev/mmcblk0p2.

Am I doing something wrong?  I found the location of the micro SD card from the "disks" program, and then selected the correct partition to get the path.  I've never referenced a micro SD card (or external drive) from within a terminal before.

It could be better if mounted on eg:  /run/media/BelowZero/...

Offline

#5 2018-06-20 13:57:19

BelowZero
Member
Registered: 2018-03-13
Posts: 59

Re: [Solved] Error Setting up Borg for Backups

Okay, here is the answer for anyone with the same issue:

The drive was already mounted on my system and visibile when I browsed files.  I just hovered over the drive and the label "/run/media/belowzero/Backup" showed up.  "Backup" was the name I gave to the micro SD card.  When I tried this with Borg, it worked fine.

Offline

Board footer

Powered by FluxBB