[Borgbackup] Crontab
Boris Kirkorowicz
bkborg at kirk.de
Thu Jun 1 06:48:00 EDT 2023
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.
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
More information about the Borgbackup
mailing list