All good.Ooops - not my intention.
plus this was in the first few lines of the OP....
"️ Setting up the Debian container ️
We will be using a Debian LXC as the base for PBS."
All good.Ooops - not my intention.
But Udos remark wasn't on the OPs post but antubis question:plus this was in the first few lines of the OP....
Just a thought... since TrueNAS Scale is based on Debian as well as PBS... why not install the PBS directly on the TrueNAS system (without LXC or VMs)?
fair point and acceptedThe answer to that is "no" which is exactly what Udo explained. So your dispute is a just a missunderstanding because both of you talked about different things![]()
@PwrBank , i think i have nailed the permissions needed, and i went one step further and wrote a script that can be run as a cron job on truenas that backs up the pbs dataset to Azure (in my case). The script checks PBS isn't writing to the store, stops the proxmox backup service (not the container), does a snapshot, restarts the pbs service in the container, then snapshot is mounted, rcloned to azure and it is alll cleaned up (snapshot deleted and then mount unmounted). - lemme know if you are interested, for me this is going to be my production pbs1 from now on.
#!/bin/bash
# A simple script to back up PBS to Crypt remote
_lock_file=/root/.tertiary_backup.lock
_schedule_time=1:30
_max_duration="7.5h"
_cutoff_mode="soft"
_datastore_dir_name=Primary_Backup
_datastore_dir_path=/mnt/datastore/$_datastore_dir_name
_config_dir=$_datastore_dir_path/host_backup
_remote_user=user
_remote_ip=tailscale-ip
_remote_port=22
_remote_name=Tertiary_Backup_Crypt...
and that is whyI really wouldn't do this if you care sbout your data, in this thread a simmiliar script failed:
Probably you know that, but I thinks it's worth to mention: every time you switch the destination the "dirty bitmap" is dropped. If you toggle every time then every backup needs to read the complete source.considering my # of backups and speed with metadata option i won't use pbs sync but two jobs in the cluster
tl;dr never let a backup tool backup live files without understanding the implications..... and tl;dr my pbs data is quite safe with this approach, if it isn;t then we have bigger issues as it would mean the on-disk state can't be trusted....
no i didn't, i wasnt going to change the destination, just have tow jobs, I had assumed each job maintains its own bitmap and comapares against the metadata (i used metadat mode) - i will do some testing and look oout for what you said, its not like the sync jobs will be long, i just heard they were slower. Thanks for the tip.Probably you know that, but I thinks it's worth to mention: every time you switch the destination the "dirty bitmap" is dropped. If you toggle every time then every backup needs to read the complete source.
well i like to think that, but shhhh, do you hear that - sounds like my pride coming before a fall - like this week when i eventually relalized i was having cephFS issues on one node because with a script i had accidentally overwritte the keyfile with a different key.... in /etc/pve/priv .... thank god i never rebooted the other two nodes....You obviouvsly know what you are doing and know of possible problems
We use essential cookies to make this site work, and optional cookies to enhance your experience.