$ cd ~/gitea-srv-local # backup the db
-weight: 600;">sudo -weight: 500;">docker exec -t gitea-srv-local_db_1 bash -c 'pg_dump gitea -U gitea --file=/var/lib/postgresql/backups/gitea-db-$(date +%Y-%m-%d).sql' # take gitea down
-weight: 600;">sudo -weight: 500;">docker-compose down # check the backups folder
-weight: 600;">sudo ls postgres-backups # create backup dir
mkdir gitea-backups # backup gitea folder
-weight: 600;">sudo tar -zcvf gitea-backups/gitea-gitea-$(date +%Y-%m-%d).tgz gitea/gitea # backup repos folder
-weight: 600;">sudo tar -zcvf gitea-backups/gitea--weight: 500;">git-$(date +%Y-%m-%d).tgz gitea/-weight: 500;">git # bring it up
-weight: 600;">sudo -weight: 500;">docker-compose up -d
cd ~/gitea-srv-local # backup the db
-weight: 600;">sudo -weight: 500;">docker exec -t gitea-srv-local_db_1 bash -c 'pg_dump gitea -U gitea --file=/var/lib/postgresql/backups/gitea-db-$(date +%Y-%m-%d).sql' # take gitea down
-weight: 600;">sudo -weight: 500;">docker-compose down # check the backups folder
-weight: 600;">sudo ls postgres-backups # create backup dir
mkdir gitea-backups # backup gitea folder
-weight: 600;">sudo tar -zcvf gitea-backups/gitea-gitea-$(date +%Y-%m-%d).tgz gitea/gitea # backup repos folder
-weight: 600;">sudo tar -zcvf gitea-backups/gitea--weight: 500;">git-$(date +%Y-%m-%d).tgz gitea/-weight: 500;">git # bring it up
-weight: 600;">sudo -weight: 500;">docker-compose up -d
cd ~/gitea-srv-local # backup the db
-weight: 600;">sudo -weight: 500;">docker exec -t gitea-srv-local_db_1 bash -c 'pg_dump gitea -U gitea --file=/var/lib/postgresql/backups/gitea-db-$(date +%Y-%m-%d).sql' # take gitea down
-weight: 600;">sudo -weight: 500;">docker-compose down # check the backups folder
-weight: 600;">sudo ls postgres-backups # create backup dir
mkdir gitea-backups # backup gitea folder
-weight: 600;">sudo tar -zcvf gitea-backups/gitea-gitea-$(date +%Y-%m-%d).tgz gitea/gitea # backup repos folder
-weight: 600;">sudo tar -zcvf gitea-backups/gitea--weight: 500;">git-$(date +%Y-%m-%d).tgz gitea/-weight: 500;">git # bring it up
-weight: 600;">sudo -weight: 500;">docker-compose up -d
scp -r uname@gitea-srv-ip-addr:/home/uname/gitea-srv-local/gitea-backups ~/gitea-backups
scp -r uname@gitea-srv-ip-addr:/home/uname/gitea-srv-local/postgres-backups ~/postgres-backups
scp -r uname@gitea-srv-ip-addr:/home/uname/gitea-srv-local/gitea-backups ~/gitea-backups
scp -r uname@gitea-srv-ip-addr:/home/uname/gitea-srv-local/postgres-backups ~/postgres-backups
scp -r uname@gitea-srv-ip-addr:/home/uname/gitea-srv-local/gitea-backups ~/gitea-backups
scp -r uname@gitea-srv-ip-addr:/home/uname/gitea-srv-local/postgres-backups ~/postgres-backups
# -weight: 500;">install it first
# then take it down
-weight: 600;">sudo -weight: 500;">docker-compose down # restore files
tar -zxvf gitea--weight: 500;">git-___.tgz gitea/-weight: 500;">git
tar -zxvf gitea-gitea-___.tgz gitea/gitea # bring it up
-weight: 600;">sudo -weight: 500;">docker-compose up -d # here some activity with psql or pg_restore
-weight: 600;">sudo -weight: 500;">docker exec -t gitea-srv-local_db_1 bash -c 'psql gitea -U gitea --file=/var/lib/postgresql/backups/gitea-db-$(date +%Y-%m-%d).sql'
# -weight: 500;">install it first
# then take it down
-weight: 600;">sudo -weight: 500;">docker-compose down # restore files
tar -zxvf gitea--weight: 500;">git-___.tgz gitea/-weight: 500;">git
tar -zxvf gitea-gitea-___.tgz gitea/gitea # bring it up
-weight: 600;">sudo -weight: 500;">docker-compose up -d # here some activity with psql or pg_restore
-weight: 600;">sudo -weight: 500;">docker exec -t gitea-srv-local_db_1 bash -c 'psql gitea -U gitea --file=/var/lib/postgresql/backups/gitea-db-$(date +%Y-%m-%d).sql'
# -weight: 500;">install it first
# then take it down
-weight: 600;">sudo -weight: 500;">docker-compose down # restore files
tar -zxvf gitea--weight: 500;">git-___.tgz gitea/-weight: 500;">git
tar -zxvf gitea-gitea-___.tgz gitea/gitea # bring it up
-weight: 600;">sudo -weight: 500;">docker-compose up -d # here some activity with psql or pg_restore
-weight: 600;">sudo -weight: 500;">docker exec -t gitea-srv-local_db_1 bash -c 'psql gitea -U gitea --file=/var/lib/postgresql/backups/gitea-db-$(date +%Y-%m-%d).sql' - https://docs.gitea.com/administration/backup-and-restore
- Docker Cheatsheet
- Gitflow Explained: Steps, Alternatives, Pros, and Cons