Re: tar exclude?

2025-03-04 Thread ToddAndMargo via users
On 3/4/25 12:13 AM, Christiano Anderson wrote: On 04/03/2025 04:08, ToddAndMargo via users wrote: It looks like if I wanted to exclude "folder3" and all its sub folders, the run line would look like: /home/ftp/mysite/folder3 cd /home/ftp tar -czvf mysite.tar.gz mysite --excl

Re: tar exclude?

2025-03-04 Thread Christiano Anderson
On 04/03/2025 04:08, ToddAndMargo via users wrote: It looks like if I wanted to exclude "folder3" and all its sub folders, the run line would look like: /home/ftp/mysite/folder3 cd /home/ftp tar -czvf mysite.tar.gz mysite --exclude='file3' --exclude='folder3'

Re: tar exclude?

2025-03-03 Thread ToddAndMargo via users
On 3/3/25 5:40 PM, Jeffrey Walton wrote: On Mon, Mar 3, 2025 at 8:17 PM ToddAndMargo via users wrote: Is there a way to exclude a directory when creating a tar ball? Let me Google that for you: <https://www.google.com/search?q=tar+how+to+exclude+directory>. Jeff It looks like if I

Re: tar exclude?

2025-03-03 Thread Jeffrey Walton
On Mon, Mar 3, 2025 at 8:17 PM ToddAndMargo via users wrote: > > Is there a way to exclude a directory when creating a tar ball? Let me Google that for you: <https://www.google.com/search?q=tar+how+to+exclude+directory>. Jeff -- ___ u

tar exclude?

2025-03-03 Thread ToddAndMargo via users
Hi All, Is there a way to exclude a directory when creating a tar ball? -T -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https

Re: tar

2023-02-02 Thread Patrick O'Callaghan
On Thu, 2023-02-02 at 16:19 -0600, Chris Adams wrote: > Once upon a time, Patrick O'Callaghan said: > > So Fedora can supply the executable (and source) but not the > > documentation? Is there something wrong with this picture? > > The executable/source doesn't come from POSIX, it comes from glib

Re: tar

2023-02-02 Thread Chris Adams
Once upon a time, Patrick O'Callaghan said: > So Fedora can supply the executable (and source) but not the > documentation? Is there something wrong with this picture? The executable/source doesn't come from POSIX, it comes from glibc. It just implements the interface defined by POSIX (which is

Re: tar

2023-02-02 Thread Patrick O'Callaghan
On Thu, 2023-02-02 at 16:10 -0500, Jon LaBadie wrote: > > > $ getconf -a | wc -l > > > 320 > > > > $ getconf -a > > LINK_MAX   127 > > ... > > > > $ getconf LINK_MAX > > Usage: getconf [-v specification] variable_name [pathname] > >    getconf -a [pathname] > > > > So

Re: tar

2023-02-02 Thread Patrick O'Callaghan
On Thu, 2023-02-02 at 15:28 -0600, Chris Adams wrote: > Once upon a time, Jon LaBadie said: > > I'd also like to see some docs on the meanings of the > > variables.  For example, is ARG_MAX the maximum NUMBER of > > args or the maximum total length?  I assume the former. > > It's the max total le

Re: tar

2023-02-02 Thread Chris Adams
Once upon a time, Jon LaBadie said: > I'd also like to see some docs on the meanings of the > variables. For example, is ARG_MAX the maximum NUMBER of > args or the maximum total length? I assume the former. It's the max total length (and includes the environment variable size). The difference

Re: tar

2023-02-02 Thread Jon LaBadie
On Thu, Feb 02, 2023 at 08:19:18PM +, Patrick O'Callaghan wrote: On Thu, 2023-02-02 at 14:28 -0500, Jon LaBadie wrote: On Thu, Feb 02, 2023 at 05:11:55PM +, Patrick O'Callaghan wrote: > On Thu, 2023-02-02 at 07:54 -0600, Robert Nichols wrote: ... > > > Your "multiple groups" warning belo

Re: tar

2023-02-02 Thread Patrick O'Callaghan
On Thu, 2023-02-02 at 14:28 -0500, Jon LaBadie wrote: > On Thu, Feb 02, 2023 at 05:11:55PM +, Patrick O'Callaghan wrote: > > On Thu, 2023-02-02 at 07:54 -0600, Robert Nichols wrote: > ... > > > > > Your "multiple groups" warning below still applies, but on modern > > > systems this is quite a

Re: tar

2023-02-02 Thread Jon LaBadie
On Thu, Feb 02, 2023 at 05:11:55PM +, Patrick O'Callaghan wrote: On Thu, 2023-02-02 at 07:54 -0600, Robert Nichols wrote: ... Your "multiple groups" warning below still applies, but on modern systems this is quite a large limit. Run "getconf ARG_MAX" to see the limit on your system. Tha

Re: tar

2023-02-02 Thread Patrick O'Callaghan
On Thu, 2023-02-02 at 07:54 -0600, Robert Nichols wrote: > On 2/1/23 4:28 PM, Cameron Simpson wrote: > > On 01Feb2023 13:07, Jerry James wrote: > > > If you can make your list with find, you can also do something > > > like this: > > > > > > find [

Re: tar

2023-02-02 Thread Robert Nichols
On 2/1/23 4:28 PM, Cameron Simpson wrote: On 01Feb2023 13:07, Jerry James wrote: If you can make your list with find, you can also do something like this: find [top directory] [find criteria here] -exec tar -cvzf arch.tgz {} + This recreates the tar file once per file, ending up with a tar

Re: tar

2023-02-01 Thread Samuel Sieb
On 2/1/23 11:24, Patrick Dupre wrote: To create a tar file, I used to create a list and to make tar -cvzf arch.tgz $list However, if there are file names with a space, this space is interpreted as file name separator. How can I fix this, either when I tar, or when I create the list? You

Re: tar

2023-02-01 Thread Felix Miata
Patrick Dupre composed on 2023-02-01 20:24 (UTC+0100): > To create a tar file, I used to create a list and to make > tar -cvzf arch.tgz $list > However, if there are file names with a space, this space is > interpreted as file name separator. > How can I fix this, > either whe

Re: tar

2023-02-01 Thread wwp
Hello Patrick, On Wed, 1 Feb 2023 20:24:22 +0100 Patrick Dupre wrote: > To create a tar file, I used to create a list and to make > tar -cvzf arch.tgz $list > > However, if there are file names with a space, this space is > interpreted as file name separator. > > How can

Re: tar

2023-02-01 Thread ToddAndMargo via users
On 2/1/23 11:24, Patrick Dupre wrote: Hello, To create a tar file, I used to create a list and to make tar -cvzf arch.tgz $list However, if there are file names with a space, this space is interpreted as file name separator. How can I fix this, either when I tar, or when I create the list

Re: tar

2023-02-01 Thread Cameron Simpson
On 01Feb2023 20:24, Patrick Dupre wrote: To create a tar file, I used to create a list and to make tar -cvzf arch.tgz $list However, if there are file names with a space, this space is interpreted as file name separator. If you can match the files with a glob (shell pattern): tar cvzf

Re: tar

2023-02-01 Thread Cameron Simpson
On 01Feb2023 13:07, Jerry James wrote: If you can make your list with find, you can also do something like this: find [top directory] [find criteria here] -exec tar -cvzf arch.tgz {} + This recreates the tar file once per file, ending up with a tar file containing only the last file found

Re: tar

2023-02-01 Thread Jerry James
On Wed, Feb 1, 2023 at 12:41 PM Go Canes wrote: > On Wed, Feb 1, 2023 at 2:24 PM Patrick Dupre wrote: > > To create a tar file, I used to create a list and to make > > tar -cvzf arch.tgz $list > > > > However, if there are file names with a space, this space is &

Re: tar

2023-02-01 Thread Go Canes
On Wed, Feb 1, 2023 at 2:24 PM Patrick Dupre wrote: > > Hello, > > To create a tar file, I used to create a list and to make > tar -cvzf arch.tgz $list > > However, if there are file names with a space, this space is > interpreted as file name separator. > > How c

tar

2023-02-01 Thread Patrick Dupre
Hello, To create a tar file, I used to create a list and to make tar -cvzf arch.tgz $list However, if there are file names with a space, this space is interpreted as file name separator. How can I fix this, either when I tar, or when I create the list? Thank

Re: tar and cores?

2020-10-10 Thread ToddAndMargo via users
On 2020-10-10 07:15, C Linus Hicks wrote: On Fri, 2020-10-09 at 15:08 -0700, ToddAndMargo via users wrote: On 2020-10-07 14:17, Cameron Simpson wrote: On 06Oct2020 16:32, ToddAndMargo wrote: I am noticing that tar czvf x is only using one of my cores (and pretty much all of the

Re: tar and cores?

2020-10-10 Thread C Linus Hicks
On Fri, 2020-10-09 at 15:08 -0700, ToddAndMargo via users wrote: > On 2020-10-07 14:17, Cameron Simpson wrote: > > On 06Oct2020 16:32, ToddAndMargo wrote: > > > I am noticing that > > > > > >tar czvf x > > > > > > is only using

Re: tar and cores?

2020-10-09 Thread ToddAndMargo via users
On 2020-10-07 14:17, Cameron Simpson wrote: On 06Oct2020 16:32, ToddAndMargo wrote: I am noticing that tar czvf x is only using one of my cores (and pretty much all of the core). Is there a way to get it to use more than one core

Re: tar and cores?

2020-10-07 Thread Cameron Simpson
On 06Oct2020 22:10, Samuel Sieb wrote: >On 10/6/20 10:02 PM, ToddAndMargo via users wrote: >>How would I use this in place of `tar czvf xxx`? > >Add "-I pigz" to the command. >tar cvf myfile.tgz -I pigz files to pack Well, today I've learnt a new

Re: tar and cores?

2020-10-07 Thread Cameron Simpson
On 06Oct2020 16:32, ToddAndMargo wrote: >I am noticing that > >tar czvf x > >is only using one of my cores (and pretty much all of >the core). > >Is there a way to get it to use more than one core? It is writing data serailly. In what way do you think using anothe

Re: tar and cores?

2020-10-07 Thread Matti Pulkkinen
ToddAndMargo via users kirjoitti 7.10.2020 klo 8.22: And will they untar with `tar xzvf `? While it's less useful for decompression, you can use pigz for that as well: tar -xf -I unpigz -- Terveisin / Regards, Matti Pulkkinen ___

Re: tar and cores?

2020-10-06 Thread ToddAndMargo via users
On 2020-10-06 22:38, Ed Greshko wrote: On 2020-10-07 13:22, ToddAndMargo via users wrote: On 2020-10-06 22:10, Samuel Sieb wrote: On 10/6/20 10:02 PM, ToddAndMargo via users wrote: How would I use this in place of `tar czvf xxx`? Add "-I pigz" to the command. tar cvf myfile.t

Re: tar and cores?

2020-10-06 Thread Ed Greshko
On 2020-10-07 13:22, ToddAndMargo via users wrote: > On 2020-10-06 22:10, Samuel Sieb wrote: >> On 10/6/20 10:02 PM, ToddAndMargo via users wrote: >>> How would I use this in place of `tar czvf xxx`? >> >> Add "-I pigz" to the command. >> tar cvf

Re: tar and cores?

2020-10-06 Thread ToddAndMargo via users
On 2020-10-06 22:10, Samuel Sieb wrote: On 10/6/20 10:02 PM, ToddAndMargo via users wrote: How would I use this in place of `tar czvf xxx`? Add "-I pigz" to the command. tar cvf myfile.tgz -I pigz files to pack Thank you! And will they untar with `tar

Re: tar and cores?

2020-10-06 Thread Samuel Sieb
On 10/6/20 10:02 PM, ToddAndMargo via users wrote: How would I use this in place of `tar czvf xxx`? Add "-I pigz" to the command. tar cvf myfile.tgz -I pigz files to pack ___ users mailing list -- users@lists.fedoraproject.org To unsubscri

Re: tar and cores?

2020-10-06 Thread ToddAndMargo via users
On 2020-10-06 21:45, Ed Greshko wrote: On 2020-10-07 12:31, ITwrx wrote: On 10/6/20 6:32 PM, ToddAndMargo via users wrote: Hi All, I am noticing that     tar czvf x is only using one of my cores (and pretty much all of the core). Is there a way to get it to use more than one core

Re: tar and cores?

2020-10-06 Thread Ed Greshko
On 2020-10-07 12:31, ITwrx wrote: > On 10/6/20 6:32 PM, ToddAndMargo via users wrote: >> Hi All, >> >> I am noticing that >> >>     tar czvf x >> >> is only using one of my cores (and pretty much all of >> the core). >> >> Is the

Re: tar and cores?

2020-10-06 Thread ITwrx
On 10/6/20 6:32 PM, ToddAndMargo via users wrote: > Hi All, > > I am noticing that > >     tar czvf x > > is only using one of my cores (and pretty much all of > the core). > > Is there a way to get it to use more than o

Re: tar and cores?

2020-10-06 Thread Roger Heflin
No. Tar and compress are single threaded. Depending on what you are wanting to do, mksquashfs will build a filesystem img that you can mount, and it will use all cores when it compresses, and the way it compresses it is easier to mount it and pull out parts. On Tue, Oct 6, 2020 at 6:33 PM

tar and cores?

2020-10-06 Thread ToddAndMargo via users
Hi All, I am noticing that tar czvf x is only using one of my cores (and pretty much all of the core). Is there a way to get it to use more than one core? Many thanks, -T ___ users mailing list -- users@lists.fedoraproject.org To

Re: tar a flash drive

2019-09-09 Thread ToddAndMargo via users
On 9/9/19 7:20 PM, Tim via users wrote: On Wed, 2019-09-04 at 23:58 -0700, ToddAndMargo via users wrote: If Windows read Ext4, I'd convert all my flash drives over to it. Apparently it can be done. Indeed. And the results are tragic. Here are my notes on it: Paragon EXTFS for Windows:

Re: tar a flash drive

2019-09-09 Thread Tim via users
On Wed, 2019-09-04 at 23:58 -0700, ToddAndMargo via users wrote: > If Windows read Ext4, I'd convert all my flash drives over to it. Apparently it can be done. -- uname -rsvp Linux 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 Boilerplate: All unexpected mail to my m

Re: tar a flash drive

2019-09-06 Thread ToddAndMargo via users
On 9/6/19 9:43 PM, ToddAndMargo via users wrote: On 9/6/19 9:36 PM, Cameron Simpson wrote: On 06Sep2019 20:16, ToddAndMargo wrote: On 9/6/19 7:45 PM, Cameron Simpson wrote: # dd status=progress bs=4096 if=/dev/sdb | gzip > DeadStick.FC30.2019-09-06 34489798656 bytes (34 GB, 32 GiB) copied, 4

Re: tar a flash drive

2019-09-06 Thread ToddAndMargo via users
On 9/6/19 9:36 PM, Cameron Simpson wrote: On 06Sep2019 20:16, ToddAndMargo wrote: On 9/6/19 7:45 PM, Cameron Simpson wrote: # dd status=progress bs=4096 if=/dev/sdb | gzip > DeadStick.FC30.2019-09-06 34489798656 bytes (34 GB, 32 GiB) copied, 404 s, 85.4 MB/s dd: error reading '/dev/sdb': Inpu

Re: tar a flash drive

2019-09-06 Thread Cameron Simpson
On 06Sep2019 20:16, ToddAndMargo wrote: On 9/6/19 7:45 PM, Cameron Simpson wrote: # dd status=progress bs=4096 if=/dev/sdb | gzip > DeadStick.FC30.2019-09-06 34489798656 bytes (34 GB, 32 GiB) copied, 404 s, 85.4 MB/s dd: error reading '/dev/sdb': Input/output error 8425692+0 records in 8425692

Re: tar a flash drive

2019-09-06 Thread ToddAndMargo via users
On 9/5/19 3:44 AM, Samuel Sieb wrote: However, the other suggestion to pipe straight through gzip (or other compression program) is better anyway. Thank you! Backup: 1) shutdown: zero out unused space Figure out which partitions / and /boot are loated on. Gparted work

Re: tar a flash drive

2019-09-06 Thread ToddAndMargo via users
On 9/6/19 7:45 PM, Cameron Simpson wrote: On 06Sep2019 19:34, ToddAndMargo wrote: I am going to test the straight pipe today on my USB3 ports and see if the overhead slows down the dd enough to stop crashing dd. [...] "crashing" ? [...] Ahh poop!  (Not my "exact" word.) # dd status=progres

Re: tar a flash drive

2019-09-06 Thread Cameron Simpson
On 06Sep2019 19:34, ToddAndMargo wrote: I am going to test the straight pipe today on my USB3 ports and see if the overhead slows down the dd enough to stop crashing dd. [...] "crashing" ? [...] Ahh poop! (Not my "exact" word.) # dd status=progress bs=4096 if=/dev/sdb | gzip > DeadStick.FC

Re: tar a flash drive

2019-09-06 Thread ToddAndMargo via users
On 9/6/19 3:21 PM, ToddAndMargo via users wrote: On 9/5/19 3:44 AM, Samuel Sieb wrote: On 9/4/19 10:55 PM, ToddAndMargo via users wrote:   # gzip DeadStick.[date]  # creates DeadStick.[date].gz   # rm DeadStick.[date] The rm will fail because gzip removes the original file whe

Re: tar a flash drive

2019-09-06 Thread ToddAndMargo via users
On 9/5/19 3:44 AM, Samuel Sieb wrote: On 9/4/19 10:55 PM, ToddAndMargo via users wrote:   # gzip DeadStick.[date]  # creates DeadStick.[date].gz   # rm DeadStick.[date] The rm will fail because gzip removes the original file when it's finished compressing.  However, the other

Re: tar a flash drive

2019-09-05 Thread Samuel Sieb
On 9/4/19 10:55 PM, ToddAndMargo via users wrote: # gzip DeadStick.[date]  # creates DeadStick.[date].gz # rm DeadStick.[date] The rm will fail because gzip removes the original file when it's finished compressing. However, the other suggestion to pipe straight through gz

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/4/19 11:24 PM, francis.montag...@inria.fr wrote: Hi. On Wed, 04 Sep 2019 22:55:56 -0700 ToddAndMargo via users wrote: This is what I finally wound up doing to back up this stick. Dead Stick is a play on words off of Live USB: Backup: 1) shutdown: zero out unused space ...

Re: tar a flash drive

2019-09-04 Thread Francis . Montagnac
Hi. On Wed, 04 Sep 2019 22:55:56 -0700 ToddAndMargo via users wrote: > This is what I finally wound up doing to back up this stick. > Dead Stick is a play on words off of Live USB: > Backup: > 1) shutdown: zero out unused space ... > # zerofree -v /dev/sd.. Beware that zerofree

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/3/19 10:03 PM, ToddAndMargo via users wrote: Hi All, I have a flash drive with about four partitions on is. Lets call it /dev/sdc. Can I tar sdc or am I stuck with tarring the partitions? Any drawback to this? Many thanks, -T Followup. This is what I finally wound up doing to back

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/3/19 11:32 PM, Eyal Lebedinsky wrote: dd if=/dev/zero of=/path/to/mountPoint/zero rm /path/to/mountPoint/zero Oh, I finally understand! I was thinking /mnt/flash/big-file-o-zeros was on the local drive, not the flash drive. Duh! Thank you!

Re: tar a flash drive

2019-09-04 Thread Patrick O'Callaghan
On Wed, 2019-09-04 at 12:44 -0700, Gordon Messmer wrote: > On 9/4/19 8:20 AM, Patrick O'Callaghan wrote: > > For a USB drive it probably doesn't make much difference. Output will > > be buffered and speed is limited by the USB interface. > > If you aren't specifying a block size, the default block

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/4/19 1:48 PM, Ted Roche wrote: scrub, in the Fedora repos, has a fillzero option and a freespace specifier that should do the trick. MAKE A BACKUP FIRST, as scrub's primary job is to erase any trace of everything on a device, so you'd hate to get the options wrong! Thank you! Ya, backup

Re: tar a flash drive

2019-09-04 Thread Ted Roche
scrub, in the Fedora repos, has a fillzero option and a freespace specifier that should do the trick. MAKE A BACKUP FIRST, as scrub's primary job is to erase any trace of everything on a device, so you'd hate to get the options wrong! On Wed, Sep 4, 2019 at 4:41 PM ToddAndMargo via users < user

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/4/19 1:25 PM, ToddAndMargo via users wrote: On 9/4/19 2:44 AM, Patrick O'Callaghan wrote: The point of Eyal's method is to ensure that all the free space on the drive is filled with zeroes, thus improving the compression. Otherwise you are just uselessly compressing junk. poc Is there a

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/4/19 6:16 AM, Dave Ihnat wrote: On 4 Sep at 01:12, Ed Greshko wrote: Of course a dd copy may be rather time consuming and space consuming with no apparent advantage. A lot less time consuming if you use the "bs=" option. Haven't seen anyone mention that; I believe the default is still

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/4/19 2:44 AM, Patrick O'Callaghan wrote: The point of Eyal's method is to ensure that all the free space on the drive is filled with zeroes, thus improving the compression. Otherwise you are just uselessly compressing junk. poc Is there a way to tell the stick itself to zero out all unuse

Re: tar a flash drive

2019-09-04 Thread Gordon Messmer
On 9/4/19 8:20 AM, Patrick O'Callaghan wrote: For a USB drive it probably doesn't make much difference. Output will be buffered and speed is limited by the USB interface. If you aren't specifying a block size, the default block size tends to involve more round-trips through the kernel and thr

Re: tar a flash drive

2019-09-04 Thread Fred Smith
On Wed, Sep 04, 2019 at 04:20:14PM +0100, Patrick O'Callaghan wrote: > On Wed, 2019-09-04 at 21:55 +0800, Ed Greshko wrote: > > On 9/4/19 9:16 PM, Dave Ihnat wrote: > > > On 4 Sep at 01:12, Ed Greshko wrote: > > > > Of course a dd copy may be rather time consuming and space consuming > > > > with

RE: Re: tar a flash drive

2019-09-04 Thread 3603060030
SORRY! That message was not intended for you. -Original Message- From: Sent: Wed, 04 Sep 2019 16:20:14 +0100 To: 3603060...@txt.att.net Subject: Re: tar a flash drive >On Wed, 2019-09-04 at 21:55 +0800, Ed Greshko wrote: >> On 9/4/19 9:16 PM, Dave Ihnat wrote: >>

RE: Re: tar a flash drive

2019-09-04 Thread 3603060030
FOLLOW @gnome -Original Message- From: Sent: Wed, 04 Sep 2019 16:20:14 +0100 To: 3603060...@txt.att.net Subject: Re: tar a flash drive >On Wed, 2019-09-04 at 21:55 +0800, Ed Greshko wrote: >> On 9/4/19 9:16 PM, Dave Ihnat wrote: >> > On 4 Sep at 01:12,

Re: tar a flash drive

2019-09-04 Thread Patrick O'Callaghan
On Wed, 2019-09-04 at 21:55 +0800, Ed Greshko wrote: > On 9/4/19 9:16 PM, Dave Ihnat wrote: > > On 4 Sep at 01:12, Ed Greshko wrote: > > > Of course a dd copy may be rather time consuming and space consuming > > > with no apparent advantage. > > A lot less time consuming if you use the "bs=" opti

Re: tar a flash drive

2019-09-04 Thread Ed Greshko
On 9/4/19 9:16 PM, Dave Ihnat wrote: > On 4 Sep at 01:12, Ed Greshko wrote: >> Of course a dd copy may be rather time consuming and space consuming >> with no apparent advantage. > A lot less time consuming if you use the "bs=" option. Haven't seen anyone > mention that; I believe the default is

Re: tar a flash drive

2019-09-04 Thread Dave Ihnat
On 4 Sep at 01:12, Ed Greshko wrote: > Of course a dd copy may be rather time consuming and space consuming > with no apparent advantage. A lot less time consuming if you use the "bs=" option. Haven't seen anyone mention that; I believe the default is still the old Unix 512b, painful. Cheers,

Re: tar a flash drive

2019-09-04 Thread Ed Greshko
On 9/4/19 5:00 PM, ToddAndMargo via users wrote: > On 9/3/19 11:12 PM, Ed Greshko wrote: >> The question would then arise as to how you would extract files/data from >> that dd created > > No extraction.  I just want to do a mass overwrite when > the stick gets corrupted OK. Pro-Tip:  Spelling o

Re: tar a flash drive

2019-09-04 Thread Patrick O'Callaghan
On Wed, 2019-09-04 at 01:59 -0700, ToddAndMargo via users wrote: > On 9/3/19 11:32 PM, Eyal Lebedinsky wrote: > > What is the purpose of this exercise? > > > I have a bootable Fedora 64 GB flash drive. I use it > to troubleshoot customers' computers -- mostly Windows. > Windows loved to eat thes

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/4/19 12:06 AM, Cameron Simpson wrote: Shrug. "cat" is easier to invoke:  cat /dev/sdBLAH >sdBLAH.img Cheers, Cameron Simpson I am use to dd. Kind of like I am use to vi when EVERY other editor it the world is easier to use. :-) ___ users ma

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/3/19 11:12 PM, Ed Greshko wrote: The question would then arise as to how you would extract files/data from that dd created No extraction. I just want to do a mass overwrite when the stick gets corrupted ___ users mailing list -- users@lists.fed

Re: tar a flash drive

2019-09-04 Thread ToddAndMargo via users
On 9/3/19 11:32 PM, Eyal Lebedinsky wrote: What is the purpose of this exercise? I have a bootable Fedora 64 GB flash drive. I use it to troubleshoot customers' computers -- mostly Windows. Windows loved to eat these sticks. (I have had great luck switching to a Samsung stick.) I have prev

Re: tar a flash drive

2019-09-04 Thread Cameron Simpson
On 03Sep2019 23:12, ToddAndMargo wrote: On 9/3/19 10:56 PM, Cameron Simpson wrote: On 03Sep2019 22:03, ToddAndMargo wrote: I have a flash drive with about four partitions on is. Lets call it /dev/sdc. Can I tar sdc or am I stuck with tarring the partitions? Any drawback to this? Depends

Re: tar a flash drive

2019-09-03 Thread Eyal Lebedinsky
On 04/09/2019 16.12, ToddAndMargo via users wrote: On 9/3/19 10:59 PM, John Harris wrote: On Tuesday, September 3, 2019 10:03:21 PM MST ToddAndMargo via users wrote: Hi All, I have a flash drive with about four partitions on is. Lets call it /dev/sdc. Can I tar sdc or am I stuck with tarring

Re: tar a flash drive

2019-09-03 Thread Ed Greshko
On 9/4/19 1:59 PM, John Harris wrote: > On Tuesday, September 3, 2019 10:03:21 PM MST ToddAndMargo via users wrote: >> Hi All, >> >> I have a flash drive with about four partitions on is. >> Lets call it /dev/sdc. >> >> Can I tar sdc or am I stuck with tarrin

Re: tar a flash drive

2019-09-03 Thread ToddAndMargo via users
On 9/3/19 10:56 PM, Cameron Simpson wrote: On 03Sep2019 22:03, ToddAndMargo wrote: I have a flash drive with about four partitions on is. Lets call it /dev/sdc. Can I tar sdc or am I stuck with tarring the partitions? Any drawback to this? Depends what you want from it. If the partitions

Re: tar a flash drive

2019-09-03 Thread ToddAndMargo via users
On 9/3/19 10:59 PM, John Harris wrote: On Tuesday, September 3, 2019 10:03:21 PM MST ToddAndMargo via users wrote: Hi All, I have a flash drive with about four partitions on is. Lets call it /dev/sdc. Can I tar sdc or am I stuck with tarring the partitions? Any drawback to this? If you

Re: tar a flash drive

2019-09-03 Thread John Harris
On Tuesday, September 3, 2019 10:03:21 PM MST ToddAndMargo via users wrote: > Hi All, > > I have a flash drive with about four partitions on is. > Lets call it /dev/sdc. > > Can I tar sdc or am I stuck with tarring the partitions? > > Any drawback to this? If you we

Re: tar a flash drive

2019-09-03 Thread Cameron Simpson
On 03Sep2019 22:03, ToddAndMargo wrote: I have a flash drive with about four partitions on is. Lets call it /dev/sdc. Can I tar sdc or am I stuck with tarring the partitions? Any drawback to this? Depends what you want from it. If the partitions have real filesystems in them then mount

tar a flash drive

2019-09-03 Thread ToddAndMargo via users
Hi All, I have a flash drive with about four partitions on is. Lets call it /dev/sdc. Can I tar sdc or am I stuck with tarring the partitions? Any drawback to this? Many thanks, -T -- ~ When we ask for advice, we are usually

Re: tar

2019-08-08 Thread Ed Greshko
On 8/8/19 3:06 PM, Patrick Dupre wrote: > Hello, > > I do not understand, > The command: > tar -cf /mnt/backup/home.tlz --lzma pdupre --exclude-caches-all > --exclude='pdupre/Nextcloud' --exclude='pdupre/.mozilla' > returns: > > tar: --exclude-ca

tar

2019-08-08 Thread Patrick Dupre
Hello, I do not understand, The command: tar -cf /mnt/backup/home.tlz --lzma pdupre --exclude-caches-all --exclude='pdupre/Nextcloud' --exclude='pdupre/.mozilla' returns: tar: --exclude-caches-all has no effect tar: --exclude ‘pdupre/Nextcloud’ has no effect tar: --excl

Re: tar failure

2017-07-17 Thread Robert Nichols
On 07/17/2017 12:55 PM, Rick Stevens wrote: Tar does an alphabetical sort of the top level of the directory you're tarring up. No, tar does not do any sorting. It just process the directory entries in the order that readdir(3) returns them. For some filesystems, that will be a sorted

Re: tar failure

2017-07-17 Thread Patrick Dupre
> Tar does an alphabetical sort of the top level of the directory you're > tarring up. When it hits a directory, it descends down that tree and > repeats the process (alphabetical sort, descend directory, etc.) until > all files/directories are completed in that branch, then g

Re: tar failure

2017-07-17 Thread Rick Stevens
he file > are taken from the directory, > Not alphabetic ordering > not date ordering. > > Then, I cannot guess what is missing. > It is an emergency archive, because the disk is failing. Tar does an alphabetical sort of the top level of the directory you're tarring up. When

Re: tar failure

2017-07-16 Thread Cameron Simpson
alphabetic ordering not date ordering. Then, I cannot guess what is missing. It is an emergency archive, because the disk is failing. Because tar files are assebled by appending things, you can "tar tvf your-tar-file" to see what is in it. Sort that. Diff against sorted listing fro

Re: tar failure

2017-07-16 Thread Patrick Dupre
y 16, 2017 at 7:55 PM > From: "Samuel Sieb" > To: users@lists.fedoraproject.org > Subject: Re: tar failure > > On 07/16/2017 10:52 AM, Patrick Dupre wrote: > > I got: tar: Exiting with failure status due to previous errors > > How can I finish the process? >

Re: tar failure

2017-07-16 Thread Samuel Sieb
On 07/16/2017 10:52 AM, Patrick Dupre wrote: I got: tar: Exiting with failure status due to previous errors How can I finish the process? I do not want to restart the tar, I only would like to tar the rest (directory). It usually doesn't stop at the error, that's why it says "p

tar failure

2017-07-16 Thread Patrick Dupre
Hello, I got: tar: Exiting with failure status due to previous errors How can I finish the process? I do not want to restart the tar, I only would like to tar the rest (directory). I do not see the logic that tar uses to create the archive Can I guess this logic? and only tar the missing ? Thank

Re: change folder heirarchy in a tar file without extracting to disk

2016-10-06 Thread fred roller
On Thu, Oct 6, 2016 at 5:57 PM, Richard W.M. Jones wrote: > On Thu, Oct 06, 2016 at 03:08:53PM -, jerome.ya...@gmail.com wrote: > > Is there a way to change the folder structure inside a tar file without > extracting it to disk first? > > > > For example, I have t

Re: change folder heirarchy in a tar file without extracting to disk

2016-10-06 Thread Richard W.M. Jones
On Thu, Oct 06, 2016 at 03:08:53PM -, jerome.ya...@gmail.com wrote: > Is there a way to change the folder structure inside a tar file without > extracting it to disk first? > > For example, I have the following file/folder structure in a tar file, > test.tar. > > dir1

change folder heirarchy in a tar file without extracting to disk

2016-10-06 Thread jerome . yanga
Is there a way to change the folder structure inside a tar file without extracting it to disk first? For example, I have the following file/folder structure in a tar file, test.tar. dir1/ dir1/file1 dir1/file2 I would like the contents to be modified to. dir2/dir1/ dir2/dir1/file1 dir2/dir1

Re: tar exclude cache

2015-12-21 Thread Rick Stevens
;s SPECIFICALLY looked for by tar: [snip of great info] As a bonus question; do you know why md5sum is showing a different value, as in... echo ".IsCacheDirectory" | md5sum - 6929f806dd11bc634be8205d11af24d6 - I used "John the Ripper" to prove that 8a477f597d28d172789f0

Re: tar exclude cache

2015-12-21 Thread Rick Stevens
On 12/21/2015 05:37 PM, Doug H. wrote: On Mon, 2015-12-21 at 16:19 -0800, Rick Stevens wrote: On 12/21/2015 02:41 PM, Patrick Dupre wrote: Thank you By the way, the signature is the MD5 hash of the string ".IsCacheDirectory" and it's SPECIFICALLY looked for by tar: [snip of

Re: tar exclude cache

2015-12-21 Thread Doug H.
On Mon, 2015-12-21 at 16:19 -0800, Rick Stevens wrote: > On 12/21/2015 02:41 PM, Patrick Dupre wrote: > > Thank you > > By the way, the signature is the MD5 hash of the string > ".IsCacheDirectory" and it's SPECIFICALLY looked for by tar: [snip of great info]

Re: tar exclude cache

2015-12-21 Thread Rick Stevens
On 12/21/2015 02:41 PM, Patrick Dupre wrote: Thank you By the way, the signature is the MD5 hash of the string ".IsCacheDirectory" and it's SPECIFICALLY looked for by tar: [root@prophead tmp]# strings /bin/tar | grep 8a477f597d28d172789f06886806bc55

Re: tar exclude cache

2015-12-21 Thread Patrick Dupre
s.fedoraproject.org > Subject: Re: tar exclude cache > > On Mon, 2015-12-21 at 21:29 +0100, Patrick Dupre wrote: > > Hello, > > > > I am trying to exclude the .cache directories when I tar a home > > directory > > by using: > > tar -cjf /mnt/backup/home.tb

Re: tar exclude cache

2015-12-21 Thread Doug H.
On Mon, 2015-12-21 at 21:29 +0100, Patrick Dupre wrote: > Hello, > > I am trying to exclude the .cache directories when I tar a home > directory > by using: > tar -cjf /mnt/backup/home.tbz2 --exclude-caches-all /home/pdupre > but it does not work. > What am I doing wron

tar exclude cache

2015-12-21 Thread Patrick Dupre
Hello, I am trying to exclude the .cache directories when I tar a home directory by using: tar -cjf /mnt/backup/home.tbz2 --exclude-caches-all /home/pdupre but it does not work. What am I doing wrong ? Thank for your help

Re: why does tar archive directory differently based on command line?

2015-02-08 Thread jd1008
On 02/08/2015 12:53 AM, Manish Jain wrote: Hi, I am having problems trying to understand why does tar archive differently with the following 2 commands, presuming xyz is a sub-directory : tar -c -f - ./xyz | gzip > xyz.tar.gz//xyz nested one level under . and .. tar -c -f - xyz | g

  1   2   >