Questions tagged [archive]

Use this tag for questions about files containing other files and/or folders, that are not covered by a more specific tag like tar, cpio, zip, rar, ar, 7z (in that case only use the specific tags). For generic questions about making security backups and rsync's archive mode, use backup.

29 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
391 views

Read from borg backup repository without authentication passphrase

Borg Backup always asks for the key passphrase when accessing a repository which was initialized in authenticated or authenticated-blake2 mode (see borg manual). However, it should in principle be ...
2
votes
2answers
705 views

Best way to compress a folder of small pre-compressed files (images)?

I have a folder containing approximate 50GB of images and video files (~35k files) that I'd like to compress into a single file for storage along side a database. Are there any compression options (or ...
2
votes
0answers
349 views

Creating Windows self-extracting executables that can auto-run a script

Does a tool exist (preferably packaged in Debian) to create Windows self-extracting executables that can auto-run a script in the archive once the extracting is done? I've been toying with NSIS but I ...
1
vote
0answers
83 views

zip warning: name not matched compressing folders

I'm trying to backup the whole volume of a drive. I want to have it password-protected This is what I did zip -er archive.zip /Volumes/Storage/ But I'm getting zip warning: name not matched ...
1
vote
0answers
45 views

Unknown character encoding for zip file in archive manager

Forenote: I am quite new to Linux, and am really just a beginner. I have downloaded a zip file from a respectable-looking site with firefox; it should contain stuff to install an application. The zip ...
1
vote
1answer
73 views

Is it possible to edit and save files in a ZIP archive with Xarchiver without extracting them?

I know it's possible with GNOME archive manager (File Roller). When editing a text file inside a ZIP archive, pressing the Save button of the text editor will pop-up a window from the archive manager ...
1
vote
2answers
85 views

Is there an archive file format supporting file-level concatenation?

It is a rather theoretical question but is there some (not too obscure) incremental archive format allowing to append to an existing archive using >> or to join several archives using a simple ...
1
vote
0answers
216 views

tar: Potential bug (?) when incremental archive selected - Deleting files in the target

I have quite interesting observation which perhaps is a manifest of a bug. My use case is to: take a backup of a folder, having a set of files from this folder added to --exclude-from file. I'm ...
1
vote
1answer
48 views

Archive directories with subdirectories not modified in x days

I have been looking for a way to archive our fileserver for some time now but have not found a working solution. The objective is to search through a directory and it's subdirectories for files not ...
1
vote
1answer
226 views

Problem Unzipping huge zip file

I have issues unzipping a huge zip files containing around 1M files. The zip file is 15GB and uncompresses to ~60GB. When I run unzip file.zip -d /directory/to/unzip/at it uncompresses halfway and ...
1
vote
0answers
230 views

Automatically unzip .tgz file when downloaded

When I download a zipped file from chrome, I can see a .tgz in my downloads section ... as such: When I click on it, I get the following screen: and then I have to manually extract it. I don't know ...
1
vote
0answers
69 views

Back up boot records, partition metadata and data into a single archive file

Back in the days I have used Acronis (commercial software) which was great. You could create a backup of a hard drive which resulted in one single file. That file contained all the information ...
1
vote
0answers
165 views

archivemount (tar) returns before writing complete (sync on write?)

I just learned about archivemount some days ago, and it sounds like exactly the solution I need for a backup problem I have with ecryptfs. However, in my tests, it seems that archivemount exits before ...
1
vote
2answers
1k views

Tar - exclude all files in sub folder but not nested folders

I need to create a .tgz archive of the following folder pack | rest | vendor (folder) | ----index.php | ----info.log | another (folder) | ---index.php ...
1
vote
0answers
358 views

patching an existing flar archive results in “file unchanged”

I'm facing issue, I need to perform a patch of a Solaris flar image and all the commands take quite some time to perform it. To avoid me being in front of it I prepared a script that almost works ...
0
votes
1answer
43 views

How reliable is resize2fs

I'm wanting to shrink (resize2fs -pM ./dockerlib) and later expand (resize2fs -p ./dockerlib 64G) ext4 blob for archive and restore for archive purposes. What I'm wondering is how reliable these ...
0
votes
0answers
17 views

Script/Command to copy -intact- files w/ directory structure following GNU ddrescue

I made a clone of a failing hard disk using GNU ddrescue. Many of the files are okay, and many are broken. I can mount the clone, with its three partitions, in Linux. I need a script or command that ...
0
votes
0answers
45 views

Transferring .tar files on Linux

I need to transfer a .tar folder to a remote server and because it's very large I can't unpack it on my computer and then transfer it. I am using "rsync" but it doesn't work: rsync -av folder/...
0
votes
0answers
25 views

compressing folders with tar and trying to exclude a folder

I'm trying to get a small script to run smoothly, it's supposed to archive all subfolders under /docker/*. What I wan't is the script to exclude all folders that has a date (i e 20191010, 20180502 and ...
0
votes
0answers
20 views

Can't remove objet file from archive file

ar t libXYZ.a show me test1.o test3.o test2.o I want to remove one of the object file : ar d libXYZ.a test1.o give me error : ar : could not create temporary file whilst writing archive : No more ...
0
votes
0answers
38 views

Archive file system and mount read-only later

I have some hard drive whose contents I’d like to archive. It should be possible to mount it read-only later. Ideally it should be possible to mount a subdirectory instead of the whole archived file ...
0
votes
0answers
541 views

How to zip/tar files older than 30 days in archive directories?

I am very new to bash scripting, so bear with me, please. I need to collect, compress and delete files in the archive directory of a directory tree older than 30 days old for each respective folder. ...
0
votes
0answers
41 views

Tar files in groups by total size

I need to tar (and gzip) a long list of files but I need to do that in groups based on each group size. For example assume I have a list of 100 files, 1Mb each and I want to create archives that are ...
0
votes
1answer
224 views

Can I extract an overwriting tar archive, while retaining the ownership of the original destination file(s)?

I have a particular use case, where I want to extract a tar archive (as root) and intentionally overwrite some destination file(s) with the contents of the archive. This is all fine and easily ...
0
votes
0answers
105 views

How to make use of tar --verify directly?

This question is about compressing rather large data directories (around 22-23 GiB), specifically the integrity checks of such archives. I do these big backups about once a month, so the time it takes ...
0
votes
1answer
923 views

RSYNC to copy new files in different directory

In remote directory, i have below files and need to copy only the current days files + previous run failures to my local directory. Example: in Remote: aa.txt aa-18-04-2017.txt aa-17-04-2017.txt ...
0
votes
1answer
105 views

Getting Git repo onto BusyBox system (StarDot NetCam SC)

The StarDot NetCam SC comes with ucLinux and Busybox. I am struggling to load a Git repository onto the device. No git No SSH so I cannot scp No support for HTTPS so I cannot wget directly from ...
0
votes
2answers
3k views

I want to move logs older than 1 day to archive using shell scripting in UNIX

cd /home/usr/bin/logs find . -mtime +1 -print | sed -n -e '/\.\/arc/d' -e 's/.*\//' -e '/*.[0-9]$/p' | while read i do if [-f arc/$i] then cat $i >> arc/$i rm $i else mv $i arc fi done The log ...
0
votes
1answer
264 views

Uncompressed .lzo files in parallel in both the folders simultaneously and then delete the original .lzo files

So I have .lzo files in /test01/primary folder which I need to uncompress and then delete all the .lzo files. Same thing I need to do in /test02/secondary folder as well. I will have around 150 .lzo ...