View previous topic :: View next topic |
Author |
Message |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Sat Jan 20, 2007 9:08 am Post subject: [backup] Fare backup della propria home |
|
|
salve, c'e' nulla del genere in portage?
http://freshmeat.net/screenshots/47054/50333/
cerco un programmino mooolto banale con una gui che mi permetta di backappare la mia home dentro una cartella remota montata localmente con smbfs
ho provato con tar ma nn riesco a specificargli una destinazione del tar.gz diversa dalla cartella home dove lancio il tar _________________ \\ba7/
Last edited by battistis on Fri Feb 02, 2007 9:44 am; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Sat Jan 20, 2007 12:11 pm Post subject: |
|
|
Ma non sarebbe più semplice lanciare un tar a mano ![Question :?:](images/smiles/icon_question.gif) _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GuN_jAcK l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/128333625043130b2b13963.jpg)
Joined: 23 Mar 2005 Posts: 834 Location: Prague, Czech Republic
|
Posted: Sat Jan 20, 2007 12:22 pm Post subject: |
|
|
ti fai uno scriptino semplice semplice che tarra e lo copia nel tape... oltretutto risulta pure più leggero a mio parere.. _________________ Rispondi in maniera intelligente anche a chi ti tratta stupidamente. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
noice Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/17309552664700181676cc5.jpg)
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Sat Jan 20, 2007 12:30 pm Post subject: Re: [backup] programmino gui semplice semplice |
|
|
battistis wrote: | ho provato con tar ma nn riesco a specificargli una destinazione del tar.gz diversa dalla cartella home dove lancio il tar |
e se dai il comando tar nella cartella di destinazione? specificando naturalmente il path della cartella che vuoi comprimere..per esempio Code: | tar -cjf backup.tar.bz2 /home/battistis |
_________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Luca89 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/15529267248502dd4c2bab.jpg)
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Sat Jan 20, 2007 1:46 pm Post subject: Re: [backup] programmino gui semplice semplice |
|
|
battistis wrote: | ho provato con tar ma nn riesco a specificargli una destinazione del tar.gz diversa dalla cartella home dove lancio il tar |
Se il problema è solo questo: Code: | cd ~; tar czf /path/to/file.tar.gz * |
_________________ Running Fast! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Sun Jan 21, 2007 3:41 pm Post subject: |
|
|
quale delle due?
nn vorrei dinuovo ritrovarmi con un tar a loop che mi riempie l'hd ![Sad :(](images/smiles/icon_sad.gif) _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Sun Jan 21, 2007 3:48 pm Post subject: |
|
|
battistis wrote: | quale delle due?
nn vorrei dinuovo ritrovarmi con un tar a loop che mi riempie l'hd ![Sad :(](images/smiles/icon_sad.gif) |
L'opzione "f" di tar serve per indicare un nome di file.
Se indichi solo un nome di file questo ti verrà creato nella directory in cui lanci il comando.
Se indichi un nome completo di path il file verrá scritto nel path che hai indicato.
Cosa c'é di così strano? _________________ Ciao da me! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Sun Jan 21, 2007 3:48 pm Post subject: |
|
|
in realtà preferirei che fosse il fileserver ad effettuare la compressione
avevo pensato ad una soluzione rsync su client + tar su server + eleiminazione file rsync
ma ho provato a scrivere un scriptino con scarsi risultati _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djinnZ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/3978748614ef08bfa7f764.jpg)
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Sun Jan 21, 2007 4:12 pm Post subject: |
|
|
![Twisted Evil :twisted:](images/smiles/icon_twisted.gif) _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist ![Wink :wink:](images/smiles/icon_wink.gif)
Last edited by djinnZ on Mon Feb 23, 2009 9:21 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Sun Jan 21, 2007 5:39 pm Post subject: |
|
|
che dire di piu'!!!
vi amo! ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Jan 25, 2007 1:06 pm Post subject: |
|
|
se sto in una partizione montata in /mnt/archivio/
e volessi tarrare proprio /mnt/archivio
e salvare il tar.gz dentro /mnt/archivio senza mandarlo a loopo (archivio dentro archivio...) ? _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djinnZ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/3978748614ef08bfa7f764.jpg)
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Thu Jan 25, 2007 2:26 pm Post subject: |
|
|
![Twisted Evil :twisted:](images/smiles/icon_twisted.gif) _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist ![Wink :wink:](images/smiles/icon_wink.gif)
Last edited by djinnZ on Mon Feb 23, 2009 9:25 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Feb 01, 2007 5:45 pm Post subject: |
|
|
grazie...pero' un po' striminzito il manuale
brutta questa cosa che tar nn verifica gli archivi compressi e nn mi fa splittare l'archivio in volumi di dimensione a piacere:cry:
lo dico perchè abituato a fare i backup con winrar quelle 2 opzioni mi sono fondamentali
ma nn c'e' un modo per stare sicuri che l'archivio creato nn sia corrotto oltre che aprirlo e spulciarlo o decomprimerlo?
cosa tra l'altro quasi impensabile se creo un archivio di piu' di 10 gb
e per splittarlo in volumi da 4gb per masterizzarli su dvd? _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Luca89 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/15529267248502dd4c2bab.jpg)
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Thu Feb 01, 2007 5:54 pm Post subject: |
|
|
battistis wrote: | ma nn c'e' un modo per stare sicuri che l'archivio creato nn sia corrotto oltre che aprirlo e spulciarlo o decomprimerlo? |
In base all'algoritmo di compressione che usi, il programma corrispondente ha una specifica funzione:
Code: | gzip --test <archivio> |
Code: | bzip2 --test <archivio> |
Quote: | e per splittarlo in volumi da 4gb per masterizzarli su dvd? |
Devi utilizzare il comando split, consulta la sua pagina di manuale per capire come usarlo. _________________ Running Fast! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Feb 01, 2007 6:28 pm Post subject: |
|
|
grazie ora spulcio un po' il man
oddidooooo troppi comandi pero' .... ![Sad :(](images/smiles/icon_sad.gif) _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Feb 01, 2007 6:30 pm Post subject: |
|
|
Luca89 wrote: |
Code: | bzip2 --test <archivio> |
|
si l'avevo visto ma nn è un comando di tar
magari lo si potrebbe concatenare?
tar ... | bzip2 --test <archivio> _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Luca89 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/15529267248502dd4c2bab.jpg)
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Thu Feb 01, 2007 7:50 pm Post subject: |
|
|
battistis wrote: | si l'avevo visto ma nn è un comando di tar
magari lo si potrebbe concatenare?
tar ... | bzip2 --test <archivio> |
No, il bzip2 controlla l'integrità di un file compresso bzip2, sia esso sia un archivio tar o un plain text. Per controllare l'integrità di ogni file appartenente al tar, puoi fare un "tar tjf <archivio>", ma ti dice solo i nomi, altre verifiche non è possibile farle. tjf però è abbastanza utile, se un file tar è corrotto solitamente te lo dice e non visualizza alcun file. _________________ Running Fast! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Feb 01, 2007 11:47 pm Post subject: |
|
|
Luca89 wrote: | battistis wrote: | si l'avevo visto ma nn è un comando di tar
magari lo si potrebbe concatenare?
tar ... | bzip2 --test <archivio> |
No, il bzip2 controlla l'integrità di un file compresso bzip2, sia esso sia un archivio tar o un plain text. Per controllare l'integrità di ogni file appartenente al tar, puoi fare un "tar tjf <archivio>", ma ti dice solo i nomi, altre verifiche non è possibile farle. tjf però è abbastanza utile, se un file tar è corrotto solitamente te lo dice e non visualizza alcun file. |
neanche su un tar.bz2 ?
ho sottointeso tar -cjf con i ...
cmq. ottima questa cosa del tjf
grazie _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Fri Feb 02, 2007 9:43 am Post subject: |
|
|
credo che tar+bzip2 nn faccia proprio al caso mio...
dopo un
Quote: |
tar -cvjf Bk_HomeRizla-`date +%d-%m-%Y`.tar.bz2 /home/battisti
|
il file di backup creato era grande 4 gb rispetto ai 15 gb della mia home
ho dato un
tar tjf sull'archivio e ha iniziato a spararmi output infinito illudendomi che l'archivio nn fosse corrotto
ho provato ad aprire l'archivio con file-roller su gnome
e questo è il risultato:
Quote: |
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Invalid argument
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
/bin/tar: EOF inatteso nell'archivio
/bin/tar: Errore irrimediabile: esco subito
|
ora vedo che mi dice bzip -tvv
e poi provo ad usare gzip invece di bzip2 oppure solamente tar senza compressione
cmq. veramente nn esistono dei programmi pensati per il backup personale in portage? _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Scen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/13649464064b974bf2b19cc.jpg)
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Fri Feb 02, 2007 10:51 am Post subject: |
|
|
Prova con
Code: |
* app-backup/dar
Available versions:
(0) 2.2.6
(4) ~2.3.1 ~2.3.2
Homepage: http://dar.linux.free.fr/
Description: A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)
|
e se ti vuoi utilizzare un'interfaccia grafica
Code: |
* app-backup/kdar
Available versions: 2.0.7
Homepage: http://kdar.sourceforge.net/
Description: KDE Disk Archiver.
|
_________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
comio Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/761284344415a971047e47.gif)
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Fri Feb 02, 2007 11:51 am Post subject: |
|
|
battistis wrote: | credo che tar+bzip2 nn faccia proprio al caso mio...
dopo un
Quote: |
tar -cvjf Bk_HomeRizla-`date +%d-%m-%Y`.tar.bz2 /home/battisti
|
il file di backup creato era grande 4 gb rispetto ai 15 gb della mia home
ho dato un
tar tjf sull'archivio e ha iniziato a spararmi output infinito illudendomi che l'archivio nn fosse corrotto
ho provato ad aprire l'archivio con file-roller su gnome
e questo è il risultato:
Quote: |
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Invalid argument
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
/bin/tar: EOF inatteso nell'archivio
/bin/tar: Errore irrimediabile: esco subito
|
ora vedo che mi dice bzip -tvv
e poi provo ad usare gzip invece di bzip2 oppure solamente tar senza compressione
cmq. veramente nn esistono dei programmi pensati per il backup personale in portage? |
Hai abilitato il supporto per file > 4GB?
ciao _________________ RTFM!!!!
e
http://www.comio.it
![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djinnZ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/3978748614ef08bfa7f764.jpg)
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Fri Feb 02, 2007 1:22 pm Post subject: |
|
|
![Twisted Evil :twisted:](images/smiles/icon_twisted.gif) _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist ![Wink :wink:](images/smiles/icon_wink.gif)
Last edited by djinnZ on Mon Feb 23, 2009 9:30 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Fri Feb 02, 2007 5:22 pm Post subject: |
|
|
comio wrote: |
Hai abilitato il supporto per file > 4GB?
ciao |
limite nel kernel? nn lo sapevo ...
credevo che quello dei 4 gb fosse solo un limite per la fat32
vi spiego meglio la situazione allora:
-client dove si trova la home da backuppare: Gentoo con kernel ricompilato, /, /boot e /home su xfs su raid1 tra due ATA
(config client) http://phpfi.com/199847
-file server con ubuntu 6 dapper con kernel di default e /mnt/backup su reiserfs su raid5 con quattro ATA
dov'e' questa opzione nel kernel per i file piu' grandi di 4 gb?
sul client o sul sever? _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Sat Feb 03, 2007 6:05 pm Post subject: |
|
|
please nn lasciatemi cosi'
nn trovo nulla su google riguardo questa limitazione dei 4gb sul kernel
è un limite del reiserfs allora? _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
battistis Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/537986031451fa976346f3.jpg)
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Feb 08, 2007 11:44 am Post subject: |
|
|
up!
il mistero dei 4gb nel kernel è ancora irrisolto
ps. nn è che forse è un limite di 4gb di ram ? _________________ \\ba7/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|