hmm  may have to give that a go, as raspberry-pi3 isnt all that beefy ,

 /var/cache/swap/swap1 --exclude ... , and touch /tmp/fake-swap1 ,
--transform to /var/cache/swap/swap1

however --emptyfile , would be in the future a very elegant , and
simplified  user alias...

also for password files or other things one might want blanked...  ie
custom iso re-spins... etc...  and remove P. I .  etc. ​

​i'll have to adjust my script but , this for now should do...  ​





------------------------------
<//launchedindfw.com/>
*View My current Resume on Resumonk*
https://www.resumonk.com/Fqx1XonLErULkVSOiZASsQ




------------------------------

[image: data-pin-nopIn=true]*Associate of (ISC)² *
<https://www.youracclaim.com/badges/1afc396a-171a-484a-b1a3-95612eb24af9/public_url>*Issued
to Michael Issued by (ISC)²** (CISSP Exam passed)*

[image:
http://lpc1.clpccd.cc.ca.us/lpc/mdaoud/CNT69/images/Security+Logo.jpg][image:
http://www.sscc.edu/specialized/images/logo-comptia-network.jpg][image:
http://www.axisdiscovery.com/img/assn-mcp-badge.png]
------------------------------

[image: HEIghT="205]
<http://2.gravatar.com/avatar/868448f7851a94ec271b8534cb3072f1?size=420>[image:
hEIghT=194]
<http://2.gravatar.com/avatar/868448f7851a94ec271b8534cb3072f1?size=420>
*Michael Robert Lawrence m...@michaellawrenceit.com
<m...@michaellawrenceit.com> *

*Work michael.lawre...@atos.net <michael.lawre...@atos.net>*
*Information Security Analyst II / Engineer *


*Dallas Fort Worth Residence : 2205 Village Circle # 714 Bedford,  Texas ,
76022 Home: +1-817-857-3521 <1.817.857.3521> Cellular:+1-317-909-2009
<+1-317-909-2009>*

*http://www.linkedin.com/in/itsecmichaelrlawrence
<http://www.linkedin.com/in/itsecmichaelrlawrence>*

[image: View Michael Robert Lawrence's profile on LinkedIn]
<http://www.linkedin.com/in/itsecmichaelrlawrence>   *skype:Necrose99 *
<http://www.linkedin.com/in/itsecmichaelrlawrence>
<http://twitter.com/lonewolf359> <http://about.me/itsecmichaelrlawrence>
<http://www.flickr.com/photos/chimerawind/> <http://klout.com/#/lonewolf359>
<http://plus.google.com/102933855470029837365>
<http://lonewolf359.tumblr.com/> <http://foursquare.com/lonewolf359>
<http://github.com/necrose99>
[image: My QR vCard]
My vCard
Get your own email signature
<https://wisestamp.com/email-install?utm_source=promotion&utm_medium=signature&utm_campaign=get_your_own>

On Tue, Jun 6, 2017 at 5:07 AM, Pavel Raiskup <prais...@redhat.com> wrote:

> On Saturday, June 3, 2017 5:40:31 AM CEST Michael R. Lawrence CISSP wrote:
> > GNU tar can't be told to --empty-file* /var/cache/swap/swap1*
>
> Ah, RFE for --empty-file.  That sounds like valid request to me.
>
> > ADDING THE LIVE RUINING FILE WILL CRASH TAR/SYSTEM
>
> Hm, tar shouldn't crash if some file is changed in parallel (that would be
> clear
> bug and reproducer would be needed).  Documentation claims that you should
> avoid
> such race conditions if you want to have _valid_ backup though.
>
> > I'm just not sure how to get tar to add the 1 file as empty... or append
> > archive as 1 empty file @ path...
> >
> > *How to append the empty file in my backup script would be a a plus* ,
> more
> > elegant...
>
> Have a look at '--transform' option:
>
>     $ tar --transform='s|/tmp/empty-file|/swp/file|' \
>           /tmp/empty-file \
>     ...
>
> That's definitely not an elegant way.  Also: I would be careful to use
> --transform with --exclude, to my understanding --exclude should be applied
> against _transformed_ name (but it doesn't happen ATM).
>
> Pavel
>
>

Reply via email to