Add a tar command to the file that creates a full backup of everything in your f
ID: 3914573 • Letter: A
Question
Add a tar command to the file that creates a full backup of everything in your filesystem except the /text directory to a file called /test/backup.dat. You may use your reading assignment, the Internet, other credible sources, and your fellow students to help you get this command correct. Redirect the standard output from this command to a file called /test/backuplog.txt. Redirect the standard error from this command to a file called /test/errlog.txt. Copy your tar command in the space provided below:
Explanation / Answer
Hi,
Please find the sample tar command below with the above specifications:
$> tar -zcvf /test/backup.dat / --exclude=/text >> /test/backuplog.txt 2>> /test/errlog.txt
Try this on your linux box. Let me know if something is missing.
Notes:
>> and 2>> are redirections for specific file-descriptors, first one for the standard output and second one for standard error .
Hope this helps.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.