DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
Old 2nd April 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Here's a test I've just run:
Code:
t450# mkdir -p test.dir/{dumped,not.dumped}
t450# touch test.dir/dumped/{a,b,c}
t450# touch test.dir/not.dumped/{d,e,f}
t450# chflags nodump test.dir/not.dumped
t450# ls -lRo test.dir/
test.dir/:
total 16
drwxr-xr-x  2 root  users  -      512 Apr  2 08:46 dumped
drwxr-xr-x  2 root  users  nodump 512 Apr  2 08:46 not.dumped

test.dir/dumped:
total 0
-rw-r--r--  1 root  users  - 0 Apr  2 08:46 a
-rw-r--r--  1 root  users  - 0 Apr  2 08:46 b
-rw-r--r--  1 root  users  - 0 Apr  2 08:46 c

test.dir/not.dumped:
total 0
-rw-r--r--  1 root  users  - 0 Apr  2 08:46 d
-rw-r--r--  1 root  users  - 0 Apr  2 08:46 e
-rw-r--r--  1 root  users  - 0 Apr  2 08:46 f
t450# tarsnap -cf test.archive test.dir
                       Total size  Compressed size
All archives                  31070784903      25420421239
  (unique data)                  15324417716      12458934259
This archive                     4087          1469
New data                     4087          1469
t450# tarsnap -tf test.archive
test.dir/
test.dir/dumped/
test.dir/dumped/a
test.dir/dumped/b
test.dir/dumped/c
t450# tarsnap -df test.archive
                       Total size  Compressed size
All archives                  31070780816      25420419770
  (unique data)                  15324413629      12458932790
This archive                     4087          1469
Deleted data                     4087          1469
t450#
Reply With Quote
Old 2nd April 2022
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

I copied what you have exactly:

Code:
mkdir -p test.dir/{dumped,not.dumped}
# touch test.dir/dumped/{a,b,c}
# touch test.dir/not.dumped/{d,e,f}
# chflags nodump test.dir/not.dumped

test.dir/:
total 8
drwxr-xr-x  2 root  wheel  -      512 Apr  2 10:06 dumped
drwxr-xr-x  2 root  wheel  nodump 512 Apr  2 10:07 not.dumped

test.dir/dumped:
total 0
-rw-r--r--  1 root  wheel  - 0 Apr  2 10:06 a
-rw-r--r--  1 root  wheel  - 0 Apr  2 10:06 b
-rw-r--r--  1 root  wheel  - 0 Apr  2 10:06 c

test.dir/not.dumped:
total 0
-rw-r--r--  1 root  wheel  - 0 Apr  2 10:07 d
-rw-r--r--  1 root  wheel  - 0 Apr  2 10:07 e
-rw-r--r--  1 root  wheel  - 0 Apr  2 10:07 f

cadfael# tarsnap -cf test.archive test.dir
                                       Total size  Compressed size
All archives                          36786819183      32349048572
  (unique data)                       10979642460       9959393519
This archive                                 7223             1647
New data                                     7223             1647



cadfael# tarsnap -tf test.archive
test.dir/
test.dir/dumped/
test.dir/not.dumped/
test.dir/not.dumped/d
test.dir/not.dumped/e
test.dir/not.dumped/f
test.dir/dumped/a
test.dir/dumped/b
test.dir/dumped/c

cadfael# tarsnap -df test.archive
                                       Total size  Compressed size
All archives                          36786811960      32349046925
  (unique data)                       10979635237       9959391872
This archive                                 7223             1647
Deleted data                                 7223             1647
I notice your results running:
# tarsnap -tf test.archive
differ from mine.

Last edited by stanl; 2nd April 2022 at 03:06 PM.
Reply With Quote
Old 2nd April 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Look at your tarsnap.conf file. Is there a line with "nodump" provisioned? Tarsnap will not honor the flag by default.
Reply With Quote
Old 2nd April 2022
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

I was just about to post and tell you to ignore that last one.
Thank you for taking the time and being so patient with me.
Reply With Quote
Old 2nd April 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Please don't worry. This sort of provisioning error is easy to overlook.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with script mateusrico Other BSD and UNIX/UNIX-like 6 28th October 2018 05:05 PM
Crontab won't run script Petrocelli08 FreeBSD General 4 7th March 2009 04:19 AM
Backup script(s)? giddyupman General software and network 2 3rd January 2009 02:06 PM
Automation Script ninjatux FreeBSD General 2 24th October 2008 04:16 PM
my 1st sh script graudeejs Programming 12 18th August 2008 10:25 PM


All times are GMT. The time now is 11:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick