unmounting storage device in bash script
I’m writing a simple bash script to run rdiff-backup in background at set intervals. When rdiff-backup finishes, the script will unmount the partition that holds the rdiff-backup target (dedicated partition on an internal hard drive, and not on the same physical device as the source files). Do I need to set a sleep interval here to make sure any buffered data has time to get written to the drive, or is the umount command smart enough to wait for buffers to clear before actually pulling the plug?
You might also like
Hi everyone, To get remote access to my home server (running Ubuntu Server 20), I forwarded port 22 to port 3xxxx in my rounter. In /etc/ssh/sshd_config, I inserted: Code: AllowTcpForwarding
I have a couple of laptops, both of which can boot either Lubuntu 18.04 (4.15.0-109) or 20.04 (5.4.0-40). On both machines, if I boot into 20.04 and have a document