Run Docker inside XLC container in Proxmox

  1. Create (preferrably unpriviliged) container
  2. Add the below configs to the container conf file:
cat <<EOT >> /etc/pve/lxc/101.conf
    #insert docker part below
    lxc.apparmor.profile: unconfined
    lxc.cgroup.devices.allow: a

3. Install following apps inside container:

apt install wget apparmor

Thats It.

Optionally, enable overlay file system (on the PVE host):

# add the those lines in /etc/modules-load.d/modules.conf :

Getting Thing Done, really doing it

I have come across multinple approaches and systems to help you get through the work efficinetly and reach your goals.

And the main conclusion: any system is better when exececude well, than looking for a better system.

GTD, Kanban, Agile etc… Try any of those, but you need to pick one and implement it 100% to become efficint before trying something else

Interesting article

LeanKit tool website, looks promising

Lean blogs list

Time Machine alternative for linux: automate your backups


MacOS has a good backup system which allows you to recover any files that have beed deleted or to restore previous versions of the files. I works like you can literally come back into a certain moment back in time.

Now that I have set up Raspberry Pi based home NAS, I found a solution that achieves the same results on linux: incrental backups with rsync.

Instruction: how to automate backups on Linux

Step 1. Set up rsync backup script, with instructions and settings on how to run the backup

sudo mkdir /usr/local/scripts    //make folder to store scripts
sudo nano /usr/local/scripts/  //create the script:
# This script makes backups from DATA location to BACKUP location and puts in date-named folders corresponding to date of each backup

# BACKUP SETTINGS, configure data and backup location:
DATA=/media/data_dir      #this folder is backed up
BACKUP=/media/backup_dir/backup_name  #to this folder

# SCRIPT BODY, no need to make changres unless you want to tweak it:
THIS_BACKUP_PATH=${BACKUP}/$(date +%Y-%m-%d) # today's date
LAST_BACKUP_PATH=${BACKUP}/$(ls ${BACKUP} | tail -n 1)
mkdir -p ${THIS_BACKUP_PATH}

rsync -av --link-dest ${LAST_BACKUP_PATH} ${DATA} ${THIS_BACKUP_PATH} $@
sudo chmod +x  /scripts/  //add execute permission

Step 2. Set up cron job to run the backup script on a schedule

sudo crontab -e

To run your backup script at 3am every night, add this to your cron file:

0 3 * * *  /usr/local/scripts/
# Other options
0 3 1 * *  /path/to/   # run every month at 3am

The syntax works like this (you can mofy it according to your needs):

* * * * * command to be executed
- - - - -
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)

Useful Links

More on cron read here, or crontab calculator here

Bash scripts 101