linux - Tar Command backup error -


i want take backup hard disk tape drive using nfs server using tar command,but getting error message

$ tar -czf /dev/st0 /media/seagate expansion drive/disk/file/ tar:/media/seagate :cannot stat:no such file or directory tar: expansion :cannot stat:no such file or directory tar: drive/disk/file/ :cannot stat:no such file or directory tar: error exit delayed previous error 

regards s k

tar -czf /dev/st0 /media/seagate expansion drive/disk/file/ 

when given above command, shell considers /media/seagate , expansion , drive/disk/file/ separate arguments, tar considers them different files/directories. if single file, enclose quotes like,

tar -czf /dev/st0/file.tar.gz "/media/seagate expansion drive/disk/file/" 

fixed tar filename


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -