0

what is the best command line to backup my files ?

tar -czf /backup/backup.tar.gz /var/www/html

or

tar -czvf /backup/backup.tar.gz /var/www/html

and what are the difrences between this to ?

P.S.

# tar -czf /backup/backup.tar.gz /var/www/html tar: Removing leading `/' from member names

i got this error why ?

Jack Duldi
  • 19
  • 8

1 Answers1

1

Both commands produce the same archive. The only difference is second command will display on the screen the files and directories which are archived.

Romeo Ninov
  • 3,195
  • 2
  • 13
  • 16