mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
Compare commits
3 commits
f359c7ae0e
...
06f212838e
Author | SHA1 | Date | |
---|---|---|---|
06f212838e | |||
d3c1c5cbcb | |||
69bffa4901 |
2 changed files with 9 additions and 1 deletions
|
@ -33,4 +33,8 @@ ansible all -m apt -a "name=vim state=latest" --become --ask-become-pass
|
|||
- `sudo apt update` equivalent
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
|
|
@ -20,3 +20,7 @@ borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$SNAPSHOT_N
|
|||
# Extract latest snapshot
|
||||
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"
|
||||
```
|
Loading…
Reference in a new issue