mirror of
https://github.com/lemeow125/Notes.git
synced 2025-08-02 17:23:17 +08:00
Migrate web frontend to docusaurus and copy over existing notes to new format
This commit is contained in:
parent
81ec3e90ed
commit
77471093c4
133 changed files with 17275 additions and 58 deletions
22
docs/Command Snippets/Bash Commands.md
Normal file
22
docs/Command Snippets/Bash Commands.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
- Mount a CIFS/Samba File share in Linux
|
||||
```bash
|
||||
sudo mount -t cifs //$ADDRESS/$REMOTE_PATH /$LOCAL_PATH \
|
||||
-o username=$USERNAME,password=$PASSWORD
|
||||
```
|
||||
- Mount a CIFS/Samba File Share in Linux with a credentials file
|
||||
```bash
|
||||
sudo mount -t cifs //$ADDRESS/$REMOTE_PATH /$LOCAL_PATH \
|
||||
-o credentials=/root/.samba/credentials
|
||||
```
|
||||
`credentials`file
|
||||
```
|
||||
username=value
|
||||
password=value
|
||||
```
|
||||
- Restore most recent Borg backup snapshot
|
||||
```bash
|
||||
borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$SNAPSHOT_NAME
|
||||
|
||||
# Extract latest snapshot
|
||||
borg extract --strip-components 3 /mnt/backups/$DEVICE/$BACKUP_NAME::$(borg list /mnt/backups/$BACKUP_NAME --last 1 --short)
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue