<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: backup &amp;amp; restore user home directory include hidden files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759848#M43801</link>
    <description>*SteVen</description>
    <pubDate>Sat, 05 Mar 2011 21:59:55 GMT</pubDate>
    <dc:creator>Viktor Balogh</dc:creator>
    <dc:date>2011-03-05T21:59:55Z</dc:date>
    <item>
      <title>backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759832#M43785</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I'm looking for simple bash scripts running from the desktop:&lt;BR /&gt;&lt;BR /&gt;1.) backup the user home directory include all hidden files: &lt;BR /&gt;&lt;BR /&gt;tar cvzf /save/user.tar.gz /home/user&lt;BR /&gt;&lt;BR /&gt;2.) restore from the backup /save/user.tar.gz&lt;BR /&gt;&lt;BR /&gt;cd /home/user&lt;BR /&gt;tar xvzf /save/user.tar.gz; cd -</description>
      <pubDate>Wed, 02 Mar 2011 02:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759832#M43785</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-02T02:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759833#M43786</link>
      <description>&lt;!--!*#--&gt;Is there a question in there?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] running from the desktop:&lt;BR /&gt;&lt;BR /&gt;Define "the desktop".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; tar c[...] /home/user&lt;BR /&gt;&lt;BR /&gt;You may save yourself some work later if you&lt;BR /&gt;avoid specifying an absolute path when you&lt;BR /&gt;create your archive.  For example:&lt;BR /&gt;&lt;BR /&gt;    cd /home&lt;BR /&gt;    tar c[...] user&lt;BR /&gt;&lt;BR /&gt;    cd /home&lt;BR /&gt;    tar x[...]&lt;BR /&gt;&lt;BR /&gt;GNU "tar" has enough options to let you&lt;BR /&gt;recover from many kinds of unwise usage, but&lt;BR /&gt;why make more work for yourself than you need&lt;BR /&gt;to?</description>
      <pubDate>Wed, 02 Mar 2011 05:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759833#M43786</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-02T05:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759834#M43787</link>
      <description>Thx I have created 2 scripts and these scripts should be launched as a normal user directly from a Desktop.&lt;BR /&gt;&lt;BR /&gt;1.) Backup script:&lt;BR /&gt;&lt;BR /&gt;#! /bin/bash&lt;BR /&gt;echo 'Backup user home dir'&lt;BR /&gt;cd /home&lt;BR /&gt;tar cvzf /home/user/save/backup.tar.bz2 $HOME&lt;BR /&gt;&lt;BR /&gt;2.) Restore script:&lt;BR /&gt;&lt;BR /&gt;#! /bin/bash&lt;BR /&gt;echo 'Restore user home dir'&lt;BR /&gt;cd /home&lt;BR /&gt;tar xvzf /home/user/save/backup.tar.bz2 &lt;BR /&gt;&lt;BR /&gt;Backup seems to work well, but if I try to restore I get this problem:&lt;BR /&gt;&lt;BR /&gt;# sh restore&lt;BR /&gt;Restore user home dir&lt;BR /&gt;tar (child): /home/user/save/backup.tar.bz2: Cannot open: No such file or directory&lt;BR /&gt;tar (child): Error is not recoverable: exiting now&lt;BR /&gt;tar: Child returned status 2&lt;BR /&gt;tar: Error is not recoverable: exiting now&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2011 01:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759834#M43787</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-03T01:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759835#M43788</link>
      <description>&lt;!--!*#--&gt;&amp;gt; tar xvzf /home/user/save/backup.tar.bz2&lt;BR /&gt;&lt;BR /&gt;I normally write for old "tar" programs, so I&lt;BR /&gt;normally make my own compression pipelines,&lt;BR /&gt;so I know nothing, but doesn't "-z" imply the&lt;BR /&gt;use of gzip, not bzip2?  I don't know what&lt;BR /&gt;all these programs will do is you give them&lt;BR /&gt;inappropriate file-name suffixes.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/tar/manual/" target="_blank"&gt;http://www.gnu.org/software/tar/manual/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As I read it, "-a" ("--auto-compress") might&lt;BR /&gt;be more flexible.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Backup seems to work well, [...]&lt;BR /&gt;&lt;BR /&gt;Evidence?&lt;BR /&gt;&lt;BR /&gt;What's in "/home/user/save/"?  With my weak&lt;BR /&gt;psychic powers, I can't see it from here.</description>
      <pubDate>Thu, 03 Mar 2011 01:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759835#M43788</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-03T01:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759836#M43789</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;I think it would be a better idea to save the backup outside of the home dir (which is also the subject of the backup) By this you would avoid backing up the already-created backups. What do you think?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Viktor</description>
      <pubDate>Thu, 03 Mar 2011 13:42:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759836#M43789</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-03-03T13:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759837#M43790</link>
      <description>I meant this line in your latest script:&lt;BR /&gt;&lt;BR /&gt;tar cvzf /home/user/save/backup.tar.bz2 $HOME&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2011 13:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759837#M43790</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-03-03T13:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759838#M43791</link>
      <description>These scrips should run by normal non-root user.&lt;BR /&gt;I've setup permissons in /save directory for a normal non-root user.   &lt;BR /&gt;&lt;BR /&gt;I changed to tar.gz and it should backup outside of the home dir:&lt;BR /&gt;&lt;BR /&gt;backup: &lt;BR /&gt;&lt;BR /&gt;tar cvzf /save/backup.tar.gz $HOME&lt;BR /&gt;&lt;BR /&gt;restore:&lt;BR /&gt;&lt;BR /&gt;tar xvzf /save/backup.tar.gz&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, if I try to restore using: &lt;BR /&gt;&lt;BR /&gt;tar xvzf /save/backup.tar.gz &lt;BR /&gt;&lt;BR /&gt;then the extra /home/user/home/user will be created, instead of extracting directly into /home/user/*.&lt;BR /&gt;&lt;BR /&gt;Howto solve this problem?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2011 01:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759838#M43791</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-04T01:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759839#M43792</link>
      <description>&lt;!--!*#--&gt;&amp;gt; tar cvzf /save/backup.tar.gz $HOME&lt;BR /&gt;&lt;BR /&gt;Should we non-psychics know what "$HOME" is&lt;BR /&gt;in this situation?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Now, if I try to restore using:&lt;BR /&gt;&lt;BR /&gt;Starting where, exactly?&lt;BR /&gt;&lt;BR /&gt;      pwd&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Howto solve this problem?&lt;BR /&gt;&lt;BR /&gt;Read previous replies?  Read the "tar"&lt;BR /&gt;documentation?&lt;BR /&gt;&lt;BR /&gt;Also potentially useful:&lt;BR /&gt;&lt;BR /&gt;      man basename</description>
      <pubDate>Fri, 04 Mar 2011 01:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759839#M43792</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-04T01:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759840#M43793</link>
      <description>Sorry for misunderstanding and pls let explain:&lt;BR /&gt;&lt;BR /&gt;$HOME is home directory, it's dynamic. &lt;BR /&gt;&lt;BR /&gt;It does the same like: &lt;BR /&gt;&lt;BR /&gt;tar cvzf /save/backup.tar.gz /home/user&lt;BR /&gt;&lt;BR /&gt;on my debian squeeze.&lt;BR /&gt;&lt;BR /&gt;I try to restore, inside from /home/user, because I'd like to do it as a normal non-root user.&lt;BR /&gt;&lt;BR /&gt;I think, running from / as a root user shouldn't be a problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Perhaps I'll try completely other solution:&lt;BR /&gt;&lt;BR /&gt;copy ALL from /home/user/* into /save/*&lt;BR /&gt;&lt;BR /&gt;and runnig this script outside of home dir:&lt;BR /&gt;&lt;BR /&gt;#! /bin/bash&lt;BR /&gt;echo 'restore user settings'&lt;BR /&gt;cd /save&lt;BR /&gt;find . -print | cpio -dumpv /home/user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2011 02:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759840#M43793</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-04T02:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759841#M43794</link>
      <description>&lt;!--!*#--&gt;&amp;gt; $HOME is home directory, it's dynamic. &lt;BR /&gt;&lt;BR /&gt;Thanks for the explanation, but I think that&lt;BR /&gt;I understood that much.  However, you demand&lt;BR /&gt;that I assume/guess that its value is&lt;BR /&gt;"/home/user/" in things like:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; then the extra /home/user/home/user will be&lt;BR /&gt;&amp;gt; created [...]&lt;BR /&gt;&lt;BR /&gt;You're the one who wants help.  I think that&lt;BR /&gt;you should be clear about what you want and&lt;BR /&gt;what you're doing.  It's not my job to guess&lt;BR /&gt;what you really mean.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Mar 2, 2011 05:50:04 GMT   10 pts&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&amp;gt;     cd /home&lt;BR /&gt;&amp;gt;     tar c[...] user&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt;     cd /home&lt;BR /&gt;&amp;gt;     tar x[...]&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;What, exactly, was wrong with that plan?  Did&lt;BR /&gt;you try it (or anything like it)?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;       man basename&lt;BR /&gt;&lt;BR /&gt;      echo basename "$HOME"&lt;BR /&gt;&lt;BR /&gt;Just a thought.&lt;BR /&gt;&lt;BR /&gt;You might also consider something like:&lt;BR /&gt;&lt;BR /&gt;      cd /home/user&lt;BR /&gt;      tar c[...] .&lt;BR /&gt;&lt;BR /&gt;      cd /home/user&lt;BR /&gt;      tar x[...]&lt;BR /&gt;&lt;BR /&gt;Perhaps:&lt;BR /&gt;&lt;BR /&gt;      cd "$HOME"&lt;BR /&gt;or:&lt;BR /&gt;      cd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In general, "tar" stores paths in the archive&lt;BR /&gt;which look like the paths you specify when&lt;BR /&gt;you create the archive.  Then, when you&lt;BR /&gt;extract the files from an archive, it tries&lt;BR /&gt;to reproduce those stored paths.  If you&lt;BR /&gt;don't want to see "/home/user" when you&lt;BR /&gt;restore the stuff, then don't say&lt;BR /&gt;"/home/user" to "tar" when you create the&lt;BR /&gt;archive.  Often informative:&lt;BR /&gt;&lt;BR /&gt;      tar t[...]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; &lt;A href="http://www.gnu.org/software/tar/manual/" target="_blank"&gt;http://www.gnu.org/software/tar/manual/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Seriously, you _really_ should look at the&lt;BR /&gt;documentation.  GNU "tar" provides many&lt;BR /&gt;options which let you play with the paths&lt;BR /&gt;when you create an archive, and when you&lt;BR /&gt;extract the files from it.  Even if you&lt;BR /&gt;insist on creating the archive using&lt;BR /&gt;(inappropriate, unhelpful) absolute paths,&lt;BR /&gt;GNU "tar" allows you to extract the files to&lt;BR /&gt;pretty much any location you might choose.&lt;BR /&gt;But wise use of "cd" and appropriate,&lt;BR /&gt;relative path specifications can make these&lt;BR /&gt;things pretty easy in many cases, even&lt;BR /&gt;without using any fancy GNU-"tar"-specific&lt;BR /&gt;command options.</description>
      <pubDate>Fri, 04 Mar 2011 03:42:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759841#M43794</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-04T03:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759842#M43795</link>
      <description>&lt;!--!*#--&gt;&amp;gt; copy ALL from /home/user/* into /save/*&lt;BR /&gt;&lt;BR /&gt;And how do you propose to do that if you&lt;BR /&gt;still want to "include hidden files"?&lt;BR /&gt;&lt;BR /&gt;If you figure out how to use "tar", then you&lt;BR /&gt;shouldn't need to do any of this "copy"&lt;BR /&gt;nonsense.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;By the way, do you _really_ want to overwrite&lt;BR /&gt;_everything_ in this "/home/user" directory?&lt;BR /&gt;(Why?)</description>
      <pubDate>Fri, 04 Mar 2011 03:47:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759842#M43795</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-04T03:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759843#M43796</link>
      <description>""And how do you propose to do that if you&lt;BR /&gt;still want to "include hidden files"?""&lt;BR /&gt;&lt;BR /&gt;for example:&lt;BR /&gt;&lt;BR /&gt;cp -a /home/user /save&lt;BR /&gt;&lt;BR /&gt;should copy all files include hidden files into /save/user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;""If you figure out how to use "tar", then you&lt;BR /&gt;shouldn't need to do any of this "copy""&lt;BR /&gt;nonsense.&lt;BR /&gt;&lt;BR /&gt;Sorry, I need a quick solution and using tar didn't work as a normal non-root user to run inside a home dir.&lt;BR /&gt;Perhaps that was a mistake.&lt;BR /&gt;It should work as a tar x script to run it outside of the home dir.&lt;BR /&gt;Anyway if I have more time, I'll look at the tar documentation. &lt;BR /&gt;&lt;BR /&gt;""By the way, do you _really_ want to overwrite&lt;BR /&gt;_everything_ in this "/home/user" directory?&lt;BR /&gt;(Why?)""&lt;BR /&gt;&lt;BR /&gt;because i try to prepare a client and it should be possible to reset all user settings.&lt;BR /&gt;&lt;BR /&gt;thx a lot and greetings&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Mar 2011 00:51:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759843#M43796</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-05T00:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759844#M43797</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] using tar didn't work [...]&lt;BR /&gt;&lt;BR /&gt;What, exactly, didn't work?  The one thing&lt;BR /&gt;which you said you tried, or one of the other&lt;BR /&gt;things which I suggested?</description>
      <pubDate>Sat, 05 Mar 2011 04:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759844#M43797</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-05T04:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759845#M43798</link>
      <description>""What, exactly, didn't work?""&lt;BR /&gt;&lt;BR /&gt;tar x exctract in the wrong path, it creates extra directory inside home dir.&lt;BR /&gt;I should find a solution to generate exact destination path using tar.</description>
      <pubDate>Sat, 05 Mar 2011 12:21:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759845#M43798</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-05T12:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759846#M43799</link>
      <description>&lt;!--!*#--&gt;&amp;gt; ""What, exactly, didn't work?""&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; tar x exctract in the wrong path, [...]&lt;BR /&gt;&lt;BR /&gt;WHEN YOU DID _WHAT_?  Which part of "exactly"&lt;BR /&gt;was unclear?  What "tar x" does depends on&lt;BR /&gt;what's in the archive, and my psychic powers&lt;BR /&gt;are too weak to tell me what you're doing.&lt;BR /&gt;&lt;BR /&gt;As usual, showing actual commands with their&lt;BR /&gt;actual output can be more helpful than vague&lt;BR /&gt;descriptions or interpretations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; You might also consider something like:&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt;       cd /home/user&lt;BR /&gt;&amp;gt;       tar c[...] .&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Do you ever read this stuff?  Do you ever try&lt;BR /&gt;these things?</description>
      <pubDate>Sat, 05 Mar 2011 15:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759846#M43799</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-05T15:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759847#M43800</link>
      <description>hi chris,&lt;BR /&gt;&lt;BR /&gt;as Stewen suggests, before making the tar archive cd to the home directory and issue the tar command with relative path. (that is, with a dot at the end). This way you store the data with relative path, and no additional dirs will be created. Note that you also need to cd to the home before untaring.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Mar 2011 21:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759847#M43800</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-03-05T21:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759848#M43801</link>
      <description>*SteVen</description>
      <pubDate>Sat, 05 Mar 2011 21:59:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759848#M43801</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-03-05T21:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759849#M43802</link>
      <description>Thx and sorry, it was my mistake, I've forgotten dot at the end.&lt;BR /&gt;&lt;BR /&gt;Running these scripts outside of home dir works really well:&lt;BR /&gt;&lt;BR /&gt;backup:&lt;BR /&gt;&lt;BR /&gt;#! /bin/bash&lt;BR /&gt;echo 'Backup user home dir'&lt;BR /&gt;cd /home&lt;BR /&gt;tar cvzf /save/user.tar.gz /home/user .&lt;BR /&gt;&lt;BR /&gt;and resore:&lt;BR /&gt;&lt;BR /&gt;#! /bin/bash&lt;BR /&gt;echo 'Restore user home dir'&lt;BR /&gt;cd /home&lt;BR /&gt;tar xvzf /save/user.tar.gz&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Mar 2011 01:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759849#M43802</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-06T01:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759850#M43803</link>
      <description>&lt;!--!*#--&gt;&amp;gt; cd /home&lt;BR /&gt;&amp;gt; tar cvzf /save/user.tar.gz /home/user .&lt;BR /&gt;&lt;BR /&gt;You seem to have missed the point about&lt;BR /&gt;specifying relative versus absolute paths to&lt;BR /&gt;"tar".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] /home/user .&lt;BR /&gt;&lt;BR /&gt;Why both "/home/user" _and_ "."?  You might&lt;BR /&gt;try them one at a time, and see which one&lt;BR /&gt;does what you want.  (If either of them&lt;BR /&gt;does.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; cd /home&lt;BR /&gt;&amp;gt; tar xvzf /save/user.tar.gz&lt;BR /&gt;&lt;BR /&gt;For a "tar" archive with absolute paths, does&lt;BR /&gt;that "cd" command actually do anything for&lt;BR /&gt;you?&lt;BR /&gt;&lt;BR /&gt;What's actually in your archive?&lt;BR /&gt;&lt;BR /&gt;      tar tvzf /save/user.tar.gz&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] works really well:&lt;BR /&gt;&lt;BR /&gt;If you think so, then you should probably&lt;BR /&gt;look again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] I need a quick solution [...]&lt;BR /&gt;&lt;BR /&gt;Sometimes it's helpful to slow down and take&lt;BR /&gt;enough time to understand what you're doing,&lt;BR /&gt;rather that simply trying to throw guesses at&lt;BR /&gt;the problem until something works (or _seems_&lt;BR /&gt;to work).  This really is simpler than you're&lt;BR /&gt;making it.</description>
      <pubDate>Sun, 06 Mar 2011 02:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759850#M43803</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-06T02:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: backup &amp; restore user home directory include hidden files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759851#M43804</link>
      <description>Thx again, you're completely right, don't need both "/home/user" _and_ "."&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] What's actually in your archive?&lt;BR /&gt;&lt;BR /&gt;I have unpacked the archive using:&lt;BR /&gt;&lt;BR /&gt;tar xzvf user.tar.gz&lt;BR /&gt;&lt;BR /&gt;and it seems to have the same contents 1:1 like in /home/user&lt;BR /&gt;&lt;BR /&gt;Before, I've tried to delete something from /home/user dir, for example a Desktop icon and it was succesfully recovered.</description>
      <pubDate>Sun, 06 Mar 2011 03:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/backup-amp-restore-user-home-directory-include-hidden-files/m-p/4759851#M43804</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-06T03:49:42Z</dc:date>
    </item>
  </channel>
</rss>

