Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I have some school work that involves creating a script that creates a backup of my /home folder, everything goes well but the problem is with the filename. I ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    2

    Tar filename, resolve failed

    Hi, I have some school work that involves creating a script that creates a backup of my /home folder, everything goes well but the problem is with the filename.

    I am supposed to create a .tgz with the filename : hostname-day-date-HH:MM:ss.tgz

    The .tgz gets created with the correct filename but when I try to unpack it the filename can't be resolved, it's the : that mess things up. Can anyone here please help me how I can fix this problem without changing : to -

    br matsii

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    We don't usually help with homework, but as you have done most of this yourself, I'll give you a hint. Troublesome characters in filenames need to be made literal by using the backslash or quotes. The man or info page for bash will show you how to do this.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    Apr 2011
    Posts
    2
    Quote Originally Posted by hazel View Post
    We don't usually help with homework, but as you have done most of this yourself, I'll give you a hint. Troublesome characters in filenames need to be made literal by using the backslash or quotes. The man or info page for bash will show you how to do this.
    Yep, I came to the conclusion that checking out the man page really helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...