[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to exclude Some but not All dot files?



On Thursday 16 August 2018 12:46:30 cyaiplexys wrote:

> On 08/16/2018 11:21 AM, Greg Wooledge wrote:
> > On Thu, Aug 16, 2018 at 11:19:29AM -0400, cyaiplexys wrote:
> >> I actually have several accounts which I want to back up but not
> >> include all the dot files. It would be too much to go into each
> >> account and run a script. I would like to do it from one account.
> >
> > Then do it from /home.
> >
> > Or do it from / and use "home" as the starting point.  Rather than
> > "/home".
>
> Thank you. This worked like a charm and I didn't have to deal with
> those warning messages in tar. Learned something new. :)

Excludes in amanda, which uses tar, are anchored to the directory they 
are in, so the exludes file looks like:
./name
./.name should also work for the "dot" files


-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: