Restore File from Backup: Fast and Efficient Without System Restore

Recovering a Deleted File from /etc or Another Critical Directory

Have you ever accidentally deleted an important file from /etc/ or another crucial directory and needed to restore it quickly from a backup without reverting the entire system to a previous version? Here's how you can do it, depending on the backup method used.

Backup Method Verification

If the backup was made using SCP, Sync, or Tartarus, follow the corresponding recovery procedure. Be sure to check crontab first to determine which backup method is currently in use on the server.

Note: This is an internal note for internal use only.

Recovery Steps

mkdir /home/downloads/

wget -r ftp://user:password@host/tartarus-etc-20250126-0436.tar

tar -tf tartarus-etc-20250126-0436.tar

tar -xf tartarus-etc-20250126-0436.tar

Comments