mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
747 B
747 B
- Mount a CIFS/Samba File share in Linux
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
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
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)
- Set date/time
sudo date --set="2024-10-02 01:12:00"