[Borgbackup] Crontab
Ralf Fechner
info at rfechner.de
Thu Jun 1 07:10:42 EDT 2023
--
Mit freundlichen Grüßen
Ralf Fechner
Ende-zu-Ende-Verschlüsselung:
PGP-Fingerprint: 48E9 23AE E27A BAB7 A68D 76F9 3483 D501 0AB9 9E0E
> Am 01.06.2023 um 12:48 schrieb Boris Kirkorowicz <bkborg at kirk.de>:
>
> Hi,
> maybe the environment is not the same. Setup a script that writes it to a logfile, and start this script once from command line and once from crontab to see the differences. If found, set the missing values in your script and run it from crontab.
>
The log file says when running above the crontab:
Remote: Permission denied, please try again.
Remote: Permission denied, please try again.
Remote: server.com: Permission denied (publickey,password).
Connection closed by remote host. Is borg working on the server?
terminating with error status, rc 2
When run manually, the backup runs smoothly.
>
>
> Am 01.06.23 um 12:42 schrieb Ralf Fechner via Borgbackup:
>> --
>> Mit freundlichen Grüßen
>> Ralf Fechner
>>> Am 01.06.2023 um 10:27 schrieb Boris Kirkorowicz <bkborg at kirk.de>:
>>>
>>> Hi,
>>> make sure that you always give full paths, even if you don't need when invoked in a terminal session. This refers to crontab entries as well as scripts.
>>>
>> Unfortunately, the specification of the full path does not lead to the desired result, it remains the same, if I start the script manually, Borg works normally, if the script is started from the Crontab, the job is not executed.
>>>
>>> Am 31.05.23 um 17:12 schrieb Ralf Fechner via Borgbackup:
>>>> Sorry in advance for the deepl-English.
>>>> I have set up Borg on MacOS X and it runs as it should.
>>>> Now I have created a new SSH key to access the server. I no longer have this Key in the .ssh directory, but I load this key into the ssh agend using KeepassXC.
>>>> Unfortunately the script is no longer executed correctly via the configured crontab, here it always says, Remote: Permission denied, please try again.
>>>> But if I execute this crontab manually in the terminal, it works fine. Why does it not work when the crontab is executed automatically?
>>>> --
>>>> Mit freundlichen Grüßen
>>>> Ralf Fechner
>>>> Ende-zu-Ende-Verschlüsselung:
>>>> PGP-Fingerprint: 48E9 23AE E27A BAB7 A68D 76F9 3483 D501 0AB9 9E0E
>>>> _______________________________________________
>>>> Borgbackup mailing list
>>>> Borgbackup at python.org
>>>> https://mail.python.org/mailman/listinfo/borgbackup
>>>
>>> --
>>> Mit freundlichem Gruß Best regards
>>> Kirkorowicz
>>> _______________________________________________
>>> Borgbackup mailing list
>>> Borgbackup at python.org
>>> https://mail.python.org/mailman/listinfo/borgbackup
>> _______________________________________________
>> Borgbackup mailing list
>> Borgbackup at python.org
>> https://mail.python.org/mailman/listinfo/borgbackup
>
> --
> Mit freundlichem Gruß Best regards
> Kirkorowicz
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://mail.python.org/pipermail/borgbackup/attachments/20230601/817dfed6/attachment.sig>
More information about the Borgbackup
mailing list