So, If you want to use
i want to use /srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA
i assume that it will create the Backup-Bo-OMV_NOVA folder inside Borgbackup
So, If you want to use
i want to use /srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA
i assume that it will create the Backup-Bo-OMV_NOVA folder inside Borgbackup
there is no folder named Backup-Bo-OMV_NOVA
but i get:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103/srv/mergerfs/Data/Malcolmbackup/' 2>&1' with exit code '2': A repository already exists at /Malcolm@100.121.165.103.
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103/srv/mergerfs/Data/Malcolmbackup/' 2>&1' with exit code '2': A repository already exists at /Malcolm@100.121.165.103. in /usr/share/php/openmediavault/system/process.inc:217
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/borgbackup.inc(184): OMV\System\Process->execute(Array, 2)
#1 [internal function]: OMVRpcServiceBorgBackup->setRepo(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setRepo', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('BorgBackup', 'setRepo', Array, Array, 1)
#5 {main}
doooh
i enter the wrong path....
laughs on me
that is now the correct path
and i check that there is no folder inside the one i want to use (/srv/mergerfs/Data/homedir/Malcolm/Borgbackup) i want the repro's to be inside there as my friend in the UK has 2 machines and we use different repro name for each machine
as you can see total empty, there should be 2 repro, Backup-Bo-OMV_NOVA and later Backup-Bo-OMV_NAP
Malcolm@100.121.165.103/./Backup-Bo-OMV_NOVA gives the same error
also Malcolm@100.121.165.103/./Borgbackup/Backup-Bo-OMV_NOVA gives the error
and the same if i use absolute path's
if you use the path with the dot, it will start in the user home directory, but you're trying to use the MergerFS storage, so use the full path.
Can you please confirm you can:
- login from server to destination without password - I think this is ok
- navigate to the path you want to use as a backup - to verify permissions
If you can navigate to the path, then adjust the configuration of Remote Path and add the folder that does not exist:
/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA
$ borg info 'Malcolm@100.121.165.103/./check'
Repository /srv/mergerfs/Pool1/Public-Test-2/malcolm/Malcolm@100.121.165.103/check does not exist.
$
i do this command from the omv that will send the backup to my omv (100.121.165.103
strange enough it says that there is no repro on the machine that i run the command on (sender omv)
- navigate to the path you want to use as a backup - to verify permissions
works fine
with : after hostname
Malcolm@100.121.165.103:/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103:/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA' 2>&1' with exit code '2': Remote: Permission denied, please try again.
Remote: Permission denied, please try again.
Remote: Malcolm@100.121.165.103: Permission denied (publickey,password).
Connection closed by remote host. Is borg working on the server?
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103:/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA' 2>&1' with exit code '2': Remote: Permission denied, please try again.
Remote: Permission denied, please try again.
Remote: Malcolm@100.121.165.103: Permission denied (publickey,password).
Connection closed by remote host. Is borg working on the server? in /usr/share/php/openmediavault/system/process.inc:217
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/borgbackup.inc(184): OMV\System\Process->execute(Array, 2)
#1 [internal function]: OMVRpcServiceBorgBackup->setRepo(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setRepo', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('BorgBackup', 'setRepo', Array, Array, 1)
#5 {main}
without
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA' 2>&1' with exit code '2': A repository already exists at /Malcolm@100.121.165.103.
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA' 2>&1' with exit code '2': A repository already exists at /Malcolm@100.121.165.103. in /usr/share/php/openmediavault/system/process.inc:217
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/borgbackup.inc(184): OMV\System\Process->execute(Array, 2)
#1 [internal function]: OMVRpcServiceBorgBackup->setRepo(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setRepo', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('BorgBackup', 'setRepo', Array, Array, 1)
#5 {main}
With the same user , browse to the destination again.
Are you able to create a folder by entering
mkdir TEST
?
Display MoreWith the same user , browse to the destination again.
Are you able to create a folder by entering
mkdir TEST
?
nope
Congratulations we have found the problem.
If you don't have the rights to write in the directory, it will never work
yep
$ ls -l
totalt 12
drwxr-sr-x 2 root users 4096 19 dec 20:51 Borgbackup
drwx-ws--x+ 4 Bo users 4096 6 nov 17:32 sd_card_images
$
Execute
chmod -R 775 Borgbackup
Then try again.
It will allow users to write.
$ ls -l
totalt 12
drwxr-sr-x 2 Malcolm users 4096 20 dec 12:36 Borgbackup
drwx-ws--x+ 4 Malcolm users 4096 6 nov 17:32 sd_card_images
$
so i try again with
Malcolm@100.121.165.103/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA
guess the error:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA' 2>&1' with exit code '2': A repository already exists at /Malcolm@100.121.165.103.
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export BORG_PASSPHRASE='H3rrm@nns3n'; export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes; /usr/bin/borg init --encryption=keyfile 'Malcolm@100.121.165.103/srv/mergerfs/Data/Malcolmbackup/Borgbackup/Backup-Bo-OMV_NOVA' 2>&1' with exit code '2': A repository already exists at /Malcolm@100.121.165.103. in /usr/share/php/openmediavault/system/process.inc:217
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/borgbackup.inc(184): OMV\System\Process->execute(Array, 2)
#1 [internal function]: OMVRpcServiceBorgBackup->setRepo(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setRepo', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('BorgBackup', 'setRepo', Array, Array, 1)
#5 {main}
Don’t have an account yet? Register yourself now and be a part of our community!