Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/02/2019, à 22:28

linuxm@c

Comment réduire la taille des fichier en stockant la différence

Supposant que j'ai 3 images
1-linuxmint-19.1-cinnamon-64bit.iso           1.8 GO
2-linuxmint-19.1-mate-64bit.iso                   1.9 GO
3-linuxmint-19.1-xfce-64bit.iso                    1.8 GO


Je voudrai garder la 1er image comme source, et sauvegarder uniquement la diffference  des deux autres
1-linuxmint-19.1-cinnamon-64bit.iso            1.8 GO
2-linuxmint-19.1-mate-64bit.svf                    120 Mo
3-linuxmint-19.1-xfce-64bit.svf                        90  Mo


Quel est la commande ou programme qui me permettra sous linux?
1er cas   - créer les fichier svf  ( ou autre extension équivalent )  a partir des 3 ISOs
2em cas - d'avoir la 2em ou la 3em image en se basant sur le fichier svf

Exemple pour le 2en cas : pour avoir : une image,   il suffit  une commande:
la commande  source.iso + mate.svf= target.iso
c.a.d   :   linuxmint-19.1-cinnamon-64bit.iso   +    linuxmint-19.1-mate-64bit.svf  =  linuxmint-19.1-mate-64bit.iso
               linuxmint-19.1-cinnamon-64bit.iso   +    linuxmint-19.1-xfce-64bit.svf    =  linuxmint-19.1-xfce-64bit.iso

Voila un exemple qui fonctionne chez les windowsiens: https://textuploader.com/d8o7o


.                                                <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
.                                                |    OS=  Linux Mint 18.1         /     Cinnamon 3.2.7      /        4.13.11-041311-generic     |
                                                 <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

Hors ligne

#2 Le 09/02/2019, à 19:47

Naziel

Re : Comment réduire la taille des fichier en stockant la différence

Hors ligne

#3 Le 11/02/2019, à 20:55

linuxm@c

Re : Comment réduire la taille des fichier en stockant la différence

j'ai télécharger  svm
les commande fonctionnent  en cmd de windows  mais pas en terminal de linux
sauf cette commande

smv l  file.svf

le help pour svm

./smv | more

résultat

Smartversion 3.7 (c) 2002-2018 G. Vollant - http://www.smartversion.com/ - 64 bits
Usage:
smv l [SvfFile]
   List content of a SvfFile
   lv instead l display a all checksum in file
   lc/lvc instead l/lv display and patch composition
smv cr [SvfFile] [List of file, directory or wilcard]
   Create a new SvfFile, create the first directory as reference with List
smv crz [SvfFile] [zipfile]
   Create a new SvfFile, create the first directory as reference from zipfile
smv cz [SvfFile] [List of file, directory or wilcard]
   Create a new SvfFile, create the first directory as compressed with List
smv czz [SvfFile] [List of file, directory or wilcard]
   Create a new SvfFile, create the first directory as compressed from zipfile

smv i [SvfFile] [-br base_directory] [List of file, directory or wilcard]
   Add a set of file as new version

smv iz SvfFile zipfile [-br base_directory] [List of file, directory or wilcard]
   Add content of a zipfile as new version

smv a [SvfFile] [-br base_directory] [List of file, dir or wilcard] -v #[-#2]
   Add a set of file in existing version

smv d [SvfFile] [-br base_directory] [List of file or wilcard] -v #[-#2]
   Delete file into existing version, from version # to version #2

smv x [SvfFile] [-br base_directory] [List of file or wilcard] [-v #] [-o]
   Extract a version (number # version, or latest by default, -o overwrite all)

smv xz SvfFile zipfile [-br base_directory] [List of file or wilcard] [-v #]
   Extract a version to zip (# version, or latest by default)

smv t [SvfFile] [-br base_directory] [-v #]
   Test the base directory,  (number # version, or first by default)

smv av [SvfFile] [SvfFileToBeAppend]
   Append somes version from file SvfFileToBeAppend to file SvfFile. A version
   of SvfFileToBeAppend must match extactly the latest version of SvfFile

for smv i,a,d,x,t, [-br base_directory] needed if the first version is reference
   SvfFile created using cz contain the first version compressed (like .zip)
   SvfFile created using cr contain only name, size and checksum of file of the
     first version. So when you use a SvfFile created with cr, you need specify
     a directory which contain files referenced in first version with -br


Options for smv i,a before [List of file, dir, wilcard]:
    [-onlyexistlatest] (or -oel) use only file which exist on latest version
    [-onlyexistversion #] (or -oev #) use only file which exist on version #

Options for smv cr,cz,i,a before [List of file, dir, wilcard]:
    [-r]   to recurse into directories
    [-n #] where # is the version name
    [-c #] where # is the version comment
    [-nf #, -cf #, -nfu #, -cfu #] for reading name/comment from file #
    [-nf #, -cf #] for ansi text file, [-nfu #, -cfu #] for unicode file

Options for smv m,cr,cz,i,a before [List of file, dir, wilcard]:
    [-compressratio #] : select the block compress ratio
      if # is between 1 (faster) and 9 (smaller) : uses zlib engine
      if # is between 110 (faster) and 119 (smaller) : uses lz4 engine
      if # is between 171 (faster) and 192 (smaller) : uses zstd engine
      if # is between 251 (faster) and 259 (smaller again) : uses lzham engine
      if # is between 41 (faster) and 49 (smallest) : uses lzma engine
      if # is between 51 (faster) and 59  : uses mix zlib+lzma engine
          svf file with lzma are not compatible with smartversion 1 or 2
          svf file with zstd or lzham are not compatible with smartversion 3.6 and older
          from faster to smaller : lz4, zstd, lzham, lzma
    [-v1compatibility] (or -v1compat) for compatibile file with SmartVersion 1
    [-blocksize #] : select the internal blocksize (8 to 8192, power of 2)
    [-nbhashbits #] : select the internal number of hash bits
    [-sha1] : for cz,czz, cr or crz : compute sha1 checksum

Options for smv x,t,m,cr,cz,i,a before [List of file, dir, wilcard]:
    [-tmpdir #] : select the directory used to write temporary file
    [-memtmpsize #] : select the maximum memory size (KB) for temporary data

Alternative to [List of file, dir, wilcard]
    [-lf #, -lfu #] read file list from text file

Option for extracing (smv x):
 -extractbystep : classic extracting, write version after version. (default)
 -inplace : modify existing file(can be dangerous : if computer crashes during modification, file is lost)
 -inplacenochecksum : like - inplace, but faster : do not verify checksum of file. Only if you are sure!
 -bymerging : merge successive patch in memory before apply them
the -inplace extracting is fast when lvc list show a very high proportion of same position data
the -bymerging extracting is fast when your svf contain small successives patch against big files

smv m [OriginalSvfFile] [SvfFileToBeRebuild] [options...]
   Rebuild/Recompress svf file to create a new svf file.
Possible options:
   [-firstinsert] : store the first version as compressed content
   [-firstref] : store the first version as checksum reference
   [-br base_directory]: location of content of first version (if needed)
   [-compressratio #] : select the block compress ratio (see above)
   [-nbhashbits #] : select the internal number of hash bits
   [-blocksize #] : select the internal blocksize (8 to 8192, power of 2)
   [-recompress] : recompress patch
   [-rebuildpatch] : rebuild patch (then recompress them)
   [-nomd5] : do not store md5 checksum (enabled by default)
   [-sha1] : store sha1 checksum
   [-sha256] : store sha256 checksum
   [-all] : include all version (default)
   [#] : include version number #
     If's often better select also -recompress if you select -rebuildpatch

smv BuildPatch [SvfFile] [OldFile] [NewFile] [options...]
   A one command to create patch from one file to another
Possible options: -blocksize #, -compressratio #, -nbhashbits #, -nomd5, -sha1, -sha256

Example:
smv cz archives.svf -r c:\directory\*
   create a new archives with files from c:\directory recursely
smv i archives.svf -r c:\directory\*
   add new version on archives.svf with files from c:\directory recursely
smv a archives.svf -r c:\directory\file*.txt -v 1-3
   add file*.txt on existing version from 1 to 3
smv d archives.svf file*.txt -v 1-3
   delete file*.txt on existing version from 1 to 3
smv d archives.svf * -v 2
   fully delete existing version 2
smv x archives.svf *.doc -v 3 -o
   extract *.doc file from archives.svf version 3, overwrite all existing file
smv i archives.svf -lf listfile.txt -nf namever.txt -cf commentv.txt
   create new version on archives.svf, by reading list list of files from
   listfile.txt, get name of version on namever.txt and comment on commentv.txt
smv | more
   display help on several screen

Dernière modification par linuxm@c (Le 11/02/2019, à 20:57)


.                                                <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
.                                                |    OS=  Linux Mint 18.1         /     Cinnamon 3.2.7      /        4.13.11-041311-generic     |
                                                 <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

Hors ligne

#4 Le 11/02/2019, à 22:27

Naziel

Re : Comment réduire la taille des fichier en stockant la différence

Je connais pas du tout ce logiciel shareware, mais pas sûr qu'il aime les fichiers iso. Je pense qu'ouvrir le fichier iso comme un dossier et utiliser ce logiciel ou rsync sera nécessaire à gagner de la place.
Ou alors voir ce qu'on obtient en compressant tout en gzip (parce que le résultat doit pas être mal vu qu'il y a de la répétition)

Hors ligne