1.7 KiB
1.7 KiB
Setup
Create LXC Container
# set vars
containername=gitsrv01
lxc_profile=enxd0374555c1f8_macvlan
Setup Container
lxc launch ubuntu $containername -p $lxc_profile
# Setup container for docker
lxc exec $containername -- bash -c "curl https://git.limbosolutions.com/kb/lxc/scripts/ubuntu-fuse-setup.sh | bash"
Fresh Install
Install Portainer
lxc exec $containername -- bash -c "curl https://git.limbosolutions.com/kb/portainer/scripts/setup.sh | bash"
lxc exec $containername -- bash -c "docker container list"
Setup
- Enter portainer (default port 9443)
- Setup Credentials
- Setup Custom Docker Images
- Duplicati with SqlClient
- Image Name : duplicati-sqlclient:latest
- Docker File
- Duplicati with SqlClient
- Create Stacks:
- git.limbosolutions.com
- requirements:
- Duplicati with sqlClient
- requirements:
- git.limbosolutions.com
Restore
- Execute Normal Setup
2)Check Every Container is ok and running
3)Stop Every Container (including portainer) except duplicati
4)Enter Duplicati
5)Import Backjob (if possible, if not possible next steps must be adapted)
- All Imported jobs schedules must be disabled (or disable write permissions on backup host) 6)Restore all files to original location
- If database engine is diferent do not restore db_data and check restore database before next steps 7)Start Container and check if everything is ok
Database
Only required of database data files not recovarable (example: diferent databases engine)
- Start Portainer container (stopped in restore process)
- Start Database container (stopped in restore process)
- Enter duplicati bash (by using portainer)
- Execute Command