Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[backup] Fare backup della propria home
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Sat Jan 20, 2007 9:08 am    Post subject: [backup] Fare backup della propria home Reply with quote

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
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Sat Jan 20, 2007 12:11 pm    Post subject: Reply with quote

Ma non sarebbe più semplice lanciare un tar a mano :?:
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
GuN_jAcK
l33t
l33t


Joined: 23 Mar 2005
Posts: 834
Location: Prague, Czech Republic

PostPosted: Sat Jan 20, 2007 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Sat Jan 20, 2007 12:30 pm    Post subject: Re: [backup] programmino gui semplice semplice Reply with quote

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
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Sat Jan 20, 2007 1:46 pm    Post subject: Re: [backup] programmino gui semplice semplice Reply with quote

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
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Sun Jan 21, 2007 3:41 pm    Post subject: Reply with quote

quale delle due?
nn vorrei dinuovo ritrovarmi con un tar a loop che mi riempie l'hd :(
_________________
\\ba7/
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Jan 21, 2007 3:48 pm    Post subject: Reply with quote

battistis wrote:
quale delle due?
nn vorrei dinuovo ritrovarmi con un tar a loop che mi riempie l'hd :(


:?:

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
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Sun Jan 21, 2007 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sun Jan 21, 2007 4:12 pm    Post subject: Reply with quote

:twisted:
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:


Last edited by djinnZ on Mon Feb 23, 2009 9:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Sun Jan 21, 2007 5:39 pm    Post subject: Reply with quote

che dire di piu'!!!
vi amo! :D
_________________
\\ba7/
Back to top
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Jan 25, 2007 1:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu Jan 25, 2007 2:26 pm    Post subject: Reply with quote

:twisted:
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:


Last edited by djinnZ on Mon Feb 23, 2009 9:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Feb 01, 2007 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Feb 01, 2007 5:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Feb 01, 2007 6:28 pm    Post subject: Reply with quote

grazie ora spulcio un po' il man

oddidooooo troppi comandi pero' .... :(
_________________
\\ba7/
Back to top
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Feb 01, 2007 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Thu Feb 01, 2007 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Feb 01, 2007 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Fri Feb 02, 2007 9:43 am    Post subject: Reply with quote

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 :P
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
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Feb 02, 2007 10:51 am    Post subject: Reply with quote

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
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Fri Feb 02, 2007 11:51 am    Post subject: Reply with quote

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 :P
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
:)
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Fri Feb 02, 2007 1:22 pm    Post subject: Reply with quote

:twisted:
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:


Last edited by djinnZ on Mon Feb 23, 2009 9:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Fri Feb 02, 2007 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Sat Feb 03, 2007 6:05 pm    Post subject: Reply with quote

please nn lasciatemi cosi' :roll:
nn trovo nulla su google riguardo questa limitazione dei 4gb sul kernel :?: :?: :?:
è un limite del reiserfs allora?
_________________
\\ba7/
Back to top
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Feb 08, 2007 11:44 am    Post subject: Reply with quote

up!
:cry: il mistero dei 4gb nel kernel è ancora irrisolto
ps. nn è che forse è un limite di 4gb di ram ?
_________________
\\ba7/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum