Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Creare uno stage4 (fare backup del sistema)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
nightshadow
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 173
Location: nowhereland

PostPosted: Tue Nov 16, 2004 4:26 pm    Post subject: Reply with quote

aggiungo una dritta:

per avere un targz piu piccol, potete cancellare il contenuto delle directory
/usr/portage/distfiles
/root/.ccache

la prima contiene i file tar.gz dei sorgenti (la maggior parte dovrebbero essere versioni "vecchie" dei pacchetti installati) la seconda contiene la cache del compilatore. se non lo avete mai fatto, riducete il file backup anche oltre il 50%.

eventualmente potete anche cancellare la dir che contiene gli ebuild (recuperate qualche centinaio di MB ulteriori)

Salumi e caci
Back to top
View user's profile Send private message
Momentime
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2003
Posts: 111
Location: Italy

PostPosted: Tue Nov 16, 2004 4:49 pm    Post subject: Reply with quote

Mi chiedevo..
ma creare un unico, GRANDE file di backup e splittarlo in parti da [Inserisci la tua dimensione preferita qui] [Inserisci la tua unità di misura preferita] non è meglio? Ad esempio

Creo un archivio da 14GB e lo splitto in 4 parti da 3.5 GB... non è meglio? così uno poi si regola con le dimensioni del proprio media e ha finito lì, senza stare a preoccuparsi di che archivi mettere in che cd... o è troppo incasinato?
_________________
Registered Linux User #367816
Registered Linux machine #262819

No hope, life is none, none!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Tue Nov 16, 2004 4:49 pm    Post subject: Reply with quote

nightshadow wrote:
eventualmente potete anche cancellare la dir che contiene gli ebuild (recuperate qualche centinaio di MB ulteriori)

In effetti anche questo e' vero poi basta fare un emerge sync
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Tue Nov 16, 2004 4:50 pm    Post subject: Reply with quote

Momentime wrote:
Creo un archivio da 14GB e lo splitto in 4 parti da 3.5 GB... non è meglio?

Ok ma come fai a fare questo?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Tue Nov 16, 2004 6:08 pm    Post subject: Reply with quote

io avevo già incollato il mio script, nel file prune.list gli ho messo path tipo /usr/portage, /var/tmp etc etc...


Quote:
Ok ma come fai a fare questo?

premetto che non ho provato, ma secondo me questo simpatico comandino che ho trovato nella shell potrebbe funzionare, a patto di riuscire a riunire il file poi...

zipsplit
Copyright (C) 1990-1999 Info-ZIP
Type 'zipsplit "-L"' for software license.

ZipSplit 2.3 (November 29th 1999)
Usage: zipsplit [-tips] [-n size] [-r room] [-b path] zipfile
-t report how many files it will take, but don't make them
-i make index (zipsplit.idx) and count its size against first zip file
-n make zip files no larger than "size" (default = 36000)
-r leave room for "room" bytes on the first disk (default = 0)
-b use "path" for the output zip files
-p pause between output zip files
-s do a sequential split even if it takes more zip files
-h show this help -v show version info -L show software license
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Tue Nov 16, 2004 6:10 pm    Post subject: Reply with quote

Bello quesi da scriverci un bello scriptino. Lo faro' quando avro' tempo
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Tue Nov 16, 2004 6:22 pm    Post subject: Reply with quote

ehm sì ci ho pensato anche io, il problema è che non ho ancora trovato il comando per riunire questi file nell'unico tar di partenza... ci deve essere per forza però :roll:
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


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

PostPosted: Tue Nov 16, 2004 6:33 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Momentime wrote:
Creo un archivio da 14GB e lo splitto in 4 parti da 3.5 GB... non è meglio?

Ok ma come fai a fare questo?


Code:
man split

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Tue Nov 16, 2004 7:30 pm    Post subject: Reply with quote

avevo visto anche quello, ma per riunire i file splittati??
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


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

PostPosted: Tue Nov 16, 2004 7:31 pm    Post subject: Reply with quote

tuxer wrote:
avevo visto anche quello, ma per riunire i file splittati??


Code:
cat file1 file2 file3 > out

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Tue Nov 16, 2004 7:33 pm    Post subject: Reply with quote

ah ok non pensavo li splittasse così brutalmente :D , beh allora che lo script cominci! :D
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


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

PostPosted: Tue Nov 16, 2004 7:34 pm    Post subject: Reply with quote

tuxer wrote:
ah ok non pensavo li splittasse così brutalmente :D , beh allora che lo script cominci! :D


LOL :wink:
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Nov 16, 2004 7:38 pm    Post subject: Reply with quote

@fedeliallalina : grazie! ne avevo bisogno... :wink:
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Nov 21, 2004 11:03 am    Post subject: Reply with quote

Allora fedeli.. riesumo il topic anche per cercare di riassumere far chiarezza su delle piccole questioni...le cartelle che sono da escludere sono in definitiva:

/proc (creata dinamicamente)
/sys (idem)
/usr/portage/* (basta dare un emerge sync e dovrebbe tornare a posto.. o sbaglio?)
/tmp/* (anche questa penso si possa togliere tranquillamente)

Ho sbagliato in qualcosa?

CIAO!
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


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

PostPosted: Sun Nov 21, 2004 11:17 am    Post subject: Reply with quote

lavish wrote:

[CUT]

Ho sbagliato in qualcosa?

CIAO!


Credo vada bene così :wink:
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Sun Nov 21, 2004 11:54 am    Post subject: Reply with quote

lavish wrote:
Ho sbagliato in qualcosa?

Non mi pare
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Sun Nov 21, 2004 1:08 pm    Post subject: Reply with quote

io toglierei anche /var/tmp, non si sa mai che ci sia rimasta qualche schifezza...
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Nov 21, 2004 1:11 pm    Post subject: Reply with quote

tuxer wrote:
io toglierei anche /var/tmp, non si sa mai che ci sia rimasta qualche schifezza...


Vero! ma in questo caso.. (nel caso anche di /usr/portage, /tmp) è preferibile non includere i files nella dir o si puo' tralasciare direttamente la dir stessa? (penso la prima... :P )
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Sun Nov 21, 2004 1:20 pm    Post subject: Reply with quote

mah io di solito tralascio addirittura la dir, per 2 o 3 mkdir non è mai morto nessuno :D
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Nov 21, 2004 1:24 pm    Post subject: Reply with quote

eh.. non si sa mai.. :P cmq la domanda indiretta era: vengono create automaticamente o no?
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Sun Nov 21, 2004 1:56 pm    Post subject: Reply with quote

no, al massimo se non ti ricordi dà un errore al primo boot o emerge, poi mkdir e si sistema tutto!
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Nov 21, 2004 2:08 pm    Post subject: Reply with quote

ehhe oky ;) Era solo una curiosità

Thx :D
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
Momentime
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2003
Posts: 111
Location: Italy

PostPosted: Sun Nov 21, 2004 4:35 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Momentime wrote:
Creo un archivio da 14GB e lo splitto in 4 parti da 3.5 GB... non è meglio?

Ok ma come fai a fare questo?


Io uso split =) è più che adatto, e funziona bene

[EDIT]
Ok, non me ne sono accorto =|
C'erano altre rispose PARECCHIO prima di questa.. sigh!
[/EDIT]
_________________
Registered Linux User #367816
Registered Linux machine #262819

No hope, life is none, none!
Back to top
View user's profile Send private message
kki
n00b
n00b


Joined: 21 Nov 2003
Posts: 10

PostPosted: Wed Dec 01, 2004 4:55 pm    Post subject: Reply with quote

il mio modestissimo script:


Code:
#!/bin/bash

# bkp-gentoo.job
# avviato da crontab ogni fine settimana
# Backup Intero disco Gentoo

# Mount dei filesystem necessari
mount /boot
mount /mnt/hdUSB

# Rimozione directory e files inutili ed ingombranti
rm -r /tmp
rm -r /usr/portage/*
rm -r /root/.ccache/*
rm -r /var/tmp/*


# Backup !!!
tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.bin.tar.bz2       /bin
md5sum bkp-gentoo.bin.tar.bz2 > bkp-gentoo.bin.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.boot.tar.bz2      /boot
md5sum bkp-gentoo.boot.tar.bz2 > bkp-gentoo.boot.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.dev.tar.bz2       /dev
md5sum bkp-gentoo.dev.tar.bz2 > bkp-gentoo.dev.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.etc.tar.bz2       /etc
md5sum bkp-gentoo.etc.tar.bz2 > bkp-gentoo.etc.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.home.tar.bz2      /home
md5sum bkp-gentoo.home.tar.bz2 > bkp-gentoo.home.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.lib.tar.bz2       /lib
md5sum bkp-gentoo.lib.tar.bz2 > bkp-gentoo.lib.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.opt.tar.bz2       /opt
md5sum bkp-gentoo.opt.tar.bz2 > bkp-gentoo.opt.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.root.tar.bz2      /root
md5sum bkp-gentoo.root.tar.bz2 > bkp-gentoo.bin.root.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.sbin.tar.bz2      /sbin
md5sum bkp-gentoo.sbin.tar.bz2 > bkp-gentoo.sbin.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.usr.tar.bz2       /usr
md5sum bkp-gentoo.usr.tar.bz2 > bkp-gentoo.usr.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.var.tar.bz2       /var
md5sum bkp-gentoo.var.tar.bz2 > bkp-gentoo.var.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.vdr.tar.bz2       /vdr
md5sum bkp-gentoo.vdr.tar.bz2 > bkp-gentoo.vdr.tar.bz2.md5

tar -cjv -X /root/skip_files -f /mnt/hdUSB/bkpGentoo/bkp-gentoo.tmp.tar.bz2       /tmp
md5sum bkp-gentoo.tmp.tar.bz2 > bkp-gentoo.tmp.tar.bz2.md5

# Fine Backup !

# Smontaggio filesystem
umount /boot
umount /mnt/hdUSB


se non si fosse capito, i files vengono copiati su un hd usb2... :)
inutile dire che ogni consiglio e' ben accetto :)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Wed Dec 01, 2004 6:29 pm    Post subject: Reply with quote

Io direi di non fare un rm ma solo di dire a tar di escludere quei path
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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