Hi,
I am currently fighting since hours with configuring a cron job to perform the backup on a schedule for a physical server I have using the Proxmox backup client.
I have a Debian system and perform the following as root. What I did so far:
I used crontab -e to schedule a hourly backup using the following line:
the content of the pbs_env.sh (it is executable) looks like this:
This does not work. The syslog says the command is executed, but nothing happens. If I put a > ~/mylog1.txt and ~/mylog2.txt to the end of both commands of the line, the files are created but stay empty.
If I run the command manually it works of cause.
After the crontab -e didn't worked, I tried it by creating a file at /etc/cron.d with the following content:
This also don't work.
Now I don't know any more what I can do. I also find no tutorials/examples/documentation how it is recommended to setup a scheduled backup using the proxmox backup client.
I am currently fighting since hours with configuring a cron job to perform the backup on a schedule for a physical server I have using the Proxmox backup client.
I have a Debian system and perform the following as root. What I did so far:
I used crontab -e to schedule a hourly backup using the following line:
Code:
28 * * * * /etc/profile.d/pbs_env.sh; /usr/bin/proxmox-backup-client backup webserver.pxar:/ --repository backupuser@pbs@192.168.1.10:BackupDisk
Code:
#!/bin/sh
export PBS_PASSWORD="myPassword"
export PBS_FINGERPRINT="myFingerprint"
This does not work. The syslog says the command is executed, but nothing happens. If I put a > ~/mylog1.txt and ~/mylog2.txt to the end of both commands of the line, the files are created but stay empty.
If I run the command manually it works of cause.
After the crontab -e didn't worked, I tried it by creating a file at /etc/cron.d with the following content:
Code:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
3 * * * * root /etc/profile.d/pbs_env.sh && /usr/bin/proxmox-backup-client backup webserver.pxar:/ --repository backupuser@pbs@192.168.1.10:BackupDisk
Now I don't know any more what I can do. I also find no tutorials/examples/documentation how it is recommended to setup a scheduled backup using the proxmox backup client.