Compare commits

...

3 commits

Author SHA1 Message Date
06f212838e vault backup: 2024-10-28 22:03:06
Affected files:
docs/Command Snippets/Ansible Snippets.md
2024-10-28 22:03:06 +08:00
d3c1c5cbcb vault backup: 2024-10-28 22:02:58
Affected files:
docs/Command Snippets/Ansible Snippets.md
2024-10-28 22:02:58 +08:00
69bffa4901 vault backup: 2024-10-28 22:02:00
Affected files:
docs/Command Snippets/Bash Commands.md
2024-10-28 22:02:00 +08:00
2 changed files with 9 additions and 1 deletions

View file

@ -33,4 +33,8 @@ ansible all -m apt -a "name=vim state=latest" --become --ask-become-pass
- `sudo apt update` equivalent - `sudo apt update` equivalent
```bash ```bash
ansible all -m apt -a "name=apt state=latest" --become --ask-become-pass ansible all -m apt -a "name=apt state=latest" --become --ask-become-pass
``` ```
- Specify `username` and `password` credentials when running a playbook
```bash
ansible-playbook playbook.yml -u root -k
```

View file

@ -20,3 +20,7 @@ borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$SNAPSHOT_N
# Extract latest snapshot # Extract latest snapshot
borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$(borg list /mnt/backups/$BACKUP_NAME --last 1 --short) borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$(borg list /mnt/backups/$BACKUP_NAME --last 1 --short)
``` ```
- Set date/time
```bash
sudo date --set="2024-10-02 01:12:00"
```