16
votes
How to clearly indicate a device is not mounted
You kind of have it backwards.
If I saw an empty directory that was usually a mount point, I would assume it wasn't mounted.
If anything, you should put a file in your mounted filesystem to show that ...
10
votes
How to clearly indicate a device is not mounted
Is it a good idea to add an empty file, say a file called NOT_MOUNTED, into mountpoint directory when the backup storage device is not mounted? Or will this be confusing?
No. Leave that directory ...
4
votes
How to clearly indicate a device is not mounted
Is a symlink better, that becomes broken when the device is unmounted?
You don't need a symlink for this, you can use chattr with the i attribute:
A file with the 'i' attribute cannot be modified: ...
2
votes
How to force low ssh-encryption
AES256 uses 14 rounds of the internal encryption algorithm, whereas AES128 only uses 10 rounds and is 40% faster. Add Ciphers [email protected] to your SSH configuration file to use this cipher. ...
2
votes
BTRFS backup using send/receive: exclude files from the backup
btrfs send is for subvolume snapshots, and cannot exclude specific files.
Further, the snapshots should be kept unchanged and read only if they are to be used as parents of incrementals. See the ...
1
vote
BTRFS backup using send/receive: exclude files from the backup
One solution is to create a sub-volume just for the data you DON'T want backed up and then move-and-symlink the directories
For example, assuming all the files & directories you want to exclude (...
1
vote
Accepted
Atomic snapshots for BTRFS
Personally, the consistency I require between /home and / is a lot less strict.
Snapshotting both may be especially useful in support of a major version upgrade of the software. However I don't ...
1
vote
Atomic snapshots for BTRFS
I suggest you try both variants and then compare the differences of the birth times of the snapshot directories. Then you know how much of a difference it is on your system.
I would like to suggest ...
1
vote
How to clearly indicate a device is not mounted
One option could be to use permissions to your advantage. If your backup program doesn't run as root, you could:
set the ownership and permissions of the mountpoint to be accessible only by root, and
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
backup × 1450rsync × 312
linux × 212
tar × 112
restore × 82
filesystems × 77
debian × 75
ubuntu × 69
dd × 69
shell-script × 53
ssh × 49
files × 48
btrfs × 48
bash × 47
permissions × 44
snapshot × 44
duplicity × 41
partition × 36
cron × 35
centos × 31
mount × 28
hard-disk × 28
lvm × 27
file-copy × 26
rsnapshot × 26