1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 4717
/ 2 Years ago, thu, april 7, 2022, 5:22:02
Hi guys i am new to linux.
I am trying to create a tar file from a different directory and want to be placed a specific directory.
I have tried this cmd
tar -cvf dailybackup.tar /root/filesfromlocalmachine/ -C /root/backup/
There is a folder in the name pf backup and i want the tar to be created there. But whenever i execute this the tar is been created at the folder where i am executing the command. Is there a way to create a tar file from a different folder.
More From » command-line