Re: cannot exclude specific subdirectory with -P

Neil Darlow via Dar-support <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
Hi,

The option -P does not need the trailing /*

Using -P Downloads is sufficient.

If you want to be more selective about which Downloads directories are
excluded then include more information before Downloads e.g.

-R /
-P home/foo/Downloads
-P home/bar/Downloads

Regards,
Neil Darlow

On Mon, 2019-02-11 at 21:26 +0900, YAMAMOTO.Taku wrote:
> Hi,
> 
> On 2019/02/11 5:00, Denis Corbin wrote:
>  > -----BEGIN PGP SIGNED MESSAGE-----
>  > Hash: SHA256
>  >
>  > Hi,
>  >
>  > Which dar version are you using?
> dar-2.6.2 working with Debian Linux9.
> 
>  >
>  > Can you explain what is not working for you?
> -P is not working for me.
> e.g. -P "*/Downloads/*"
> 
> Cygwin version is working good.
> But Linux version is ignored.
> I can't understand why linux dar -P option is not working.
> 
> 
>  > Can you also simplify your example as much as possible, removing
> what
>  > is not significant from what is significant?
> 
> # dar -v -z9 \
> -c /mnt/Backup/`hostname`/`date -I`/`hostname`_`date -I`_full-home \
> -R / \
> -g etc \
> -g home/ \
> -g var \
> -P "*/Downloads/*"
> 
>  >
>  > Regards,
>  > Denis
>  >
>  > On 10/02/2019 07:50, YAMAMOTO.Taku wrote:
>  >> Hi,
>  >>
>  >> I'm having problem. -P doesn't work following command line. -- #
> cd
>  >> / &&  mkdir -p /mnt/Backup/`hostname`/`date -I` && \ nice time
> dar
>  >> -v -z9 \ -c /mnt/Backup/`hostname`/`date -I`/`hostname`_`date
>  >> -I`_full-home \ -R / \ -g etc \ -g home/ \ -g var \ -g mnt/Users
> -P
>  >> "*/AppData/*" \ -P "*/Application Data/*" \ -P "var/cache/*" \ -P
>  >> "*/.mozilla/*/Cache/*"  -P "*/.mozilla/Cache/*" -P
> "*/download*/*"
>  >> -P "*/tmp/*" \ -P "*/.ccache/*" -P "*/.elmo/cache" -P
>  >> "home/*/tmp/*" \ -P "home/taku/.cache" \ -P
>  >> "home/*/.emacs.d/semanticdb/" \ -P "*/Downloads/*" \ -P
>  >> "*/Archives/*" \ -P "*/Videos/*" \ -P "*/Music/*" \ -P
>  >> "*/bzr_work/*" \ 2>&1 | tee
> /home/taku/log/backup/`hostname`_`date
>  >> -I`_full-home.log; --
>  >>
>  > -----BEGIN PGP SIGNATURE-----
>  >
>  > iQIzBAEBCAAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAlxggs0ACgkQCDGwvQPY
>  > sYKDvw//Zic90XCbYHHAEn5pEs9I/ixiktirwcpNjh0b5NsHsYwkhhJ815sFQO3/
>  > E6FE/qLd3NXfdQDWTvbUfaN+5T/aqSRaP9ZHd2ADNwcyzNgHfVK4JNCdj/nZbWto
>  > Bj0zU4h4riYy2tEZIJwNOvG+8RktatD30jeco9Wjk+LThSXHjr6hFwpW44UtLLr4
>  > vRdLrqJj+61ONqvIq9oO9QntQA1xpNSuEfq8aW8q+1DOyDb0ubZw8WG/Hj20gQr8
>  > Axutb4CtldceFC5moxMX6KuoSZqubJhwmaSAMWvOU3ydIW3yZiqmtgtiEAKDiiT0
>  > kREBJJTG9FmFJJwP02F7ZtCwi4cszpw9uqbVJlC8KT2Ra4xjaHXhvGoZS+Ikeekt
>  > LQfsQO4HoSfWzk1yjRLXcq4xSku1XcQaLYNvnOHVv9o2iMN97IlCMtLPVrMvMIfX
>  > Bz1ecB8ZvhEwiJQCP2jhe8g0x0199JG0YW50tugqSxsbze1EtWtyR55tcugYfQMt
>  > ctrNqtWb+JY5sET4JNCm7ebo8TH81r3Dg+dBnAvbVwElCwXqpjkFZh5lDF0OoEqy
>  > WtKAzfW53BgMMRvjqlij+Deuwmy7L/D0BdKhp3YpzhwkBIbKI7gDGta+MHl7+mus
>  > 4hXaiQyAEQ9xhQL+cLeNhU+jVpP6KwItswkl56aPEMheaS8Qf5I=
>  > =5H9A
>  > -----END PGP SIGNATURE-----
>  >
>  >
>  > _______________________________________________
>  > Dar-support mailing list
>  > [email protected]
>  > https://lists.sourceforge.net/lists/listinfo/dar-support
>  >
> 
> Regards,Taku
-- 
Sent with Evolution Mail on Linux Mint 19.1 "Tessa".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.