Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fare un backup del sistema
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Jul 05, 2004 10:00 am    Post subject: Reply with quote

millennio wrote:
ce qualche modo per fare prima?


usare un programma di backup ?

Quote:
fai conto che mi è saltato il sistema e devo ripristinarlo dal file compresso che ho masterizzato su un dvd come faccio?


o monti l'hd su un altro pc, e scompatti, oppure metti un livecd, chrotti e scompatti, oppure ti fai un minifloppy di boot, e scompatti...

;-)

Coda
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Mon Jul 05, 2004 10:02 am    Post subject: Reply with quote

mmm e provare con mondo-rescue ?
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Jul 05, 2004 10:03 am    Post subject: Reply with quote

randomaze wrote:
tar -zcvf miofile.tgz * --exclude=miofile.tgz


si', giusto, il maledetto --exclude... me lo dimentico sempre ;-)

Coda
Back to top
View user's profile Send private message
millennio
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2004
Posts: 120
Location: /dev/null

PostPosted: Mon Jul 05, 2004 10:05 am    Post subject: Reply with quote

vorse non mi avete capito...

il tar lo so usare io non ho capito come fare una volta che devo ripristinare... cosa devo bootare per ripristinare il file compresso?
_________________
GENTOO RULEZ
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Jul 05, 2004 10:07 am    Post subject: Reply with quote

millennio wrote:
il tar lo so usare io non ho capito come fare una volta che devo ripristinare... cosa devo bootare per ripristinare il file compresso?

Se guari la pagina precedente del post ti ho fatto una guida su come fare il backup e come ripristinarlo. A tuo rischi e pericolo sottolineo ancora
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Mon Jul 05, 2004 10:09 am    Post subject: Reply with quote

Se hai un cdrom

Avvii da LiveCD, al boot passi l'opzione cdcache [o qualcosa del genere, l'opzione che copia il cd in ram], monti tutte le partizioni, smonti il cd, inserisci il cd o il dvd con il backup del tuo sistema e fai l'untar.
Poi imposti grub e riavvii.

Se hai due cdrom

Avvii da LiveCD, monti le partizioni, inserisci nell'altro cdrom il cd o il dvd con il backup del tuo sistema e fai l'untar.
Poi imposti grub e riavii.


L'aveva già scritto fedeliallalinea, tra l'altro :D
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
millennio
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2004
Posts: 120
Location: /dev/null

PostPosted: Mon Jul 05, 2004 10:14 am    Post subject: Reply with quote

grazie solka

tu mi hai capito:)
_________________
GENTOO RULEZ
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Mon Jul 05, 2004 10:15 am    Post subject: Reply with quote

ripeto mondo rescue...backup del pc con cd o dvd bootante
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
marco86
Guru
Guru


Joined: 04 Jun 2004
Posts: 574
Location: /italy/torino/valli_di_Lanzo

PostPosted: Mon Jul 05, 2004 10:16 am    Post subject: Reply with quote

millennio wrote:
grazie solka

tu mi hai capito:)

solka wrote:
L'aveva già scritto fedeliallalinea, tra l'altro

_________________
Se il destino è contro di noi...bhe, peggio per lui....!!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30996
Location: here

PostPosted: Mon Jul 05, 2004 10:21 am    Post subject: Reply with quote

millennio wrote:
grazie solka

tu mi hai capito:)

Scusa ma i ho scritto la stessa cosa nel mio howto.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
marco86
Guru
Guru


Joined: 04 Jun 2004
Posts: 574
Location: /italy/torino/valli_di_Lanzo

PostPosted: Mon Jul 05, 2004 10:22 am    Post subject: Reply with quote

fedeliallalinea wrote:
millennio wrote:
grazie solka

tu mi hai capito:)

Scusa ma i ho scritto la stessa cosa nel mio howto.

eh, ma bisognava leggerlo....., e sembrava troppo lungo :twisted:
_________________
Se il destino è contro di noi...bhe, peggio per lui....!!
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Mon Jul 05, 2004 10:29 am    Post subject: Reply with quote

millennio, se tu leggevi l'howto di fedeli trovavi una risposta molto più dettagliata...

a dir la verità anche nell'howto iniziale che ti ho passato trovavi la risposta...
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
marco86
Guru
Guru


Joined: 04 Jun 2004
Posts: 574
Location: /italy/torino/valli_di_Lanzo

PostPosted: Mon Jul 05, 2004 10:48 am    Post subject: Reply with quote

@ solka: tu che riesci a farti capire da millenio, digli di mettere il tag risolto al titolo.. :twisted:
_________________
Se il destino è contro di noi...bhe, peggio per lui....!!
Back to top
View user's profile Send private message
fatez
Apprentice
Apprentice


Joined: 07 May 2003
Posts: 295

PostPosted: Mon Jul 05, 2004 11:41 am    Post subject: Reply with quote

questo è il mio scriptino che mi sono fatto in pochi minuti.
Funziona ed è estremamente semplice:


Code:

date=`date +%d-%m-%Y`
locate="/mnt/Parcheggio2/[STEFANO]/[BACK-UP]"

mkdir "$locate/$date" && \
cd / && \
tar -cvzpf "$locate/$date/bin.tar.gz" /bin/ && \
mount /boot && \
tar -cvzpf "$locate/$date/boot.tar.gz" /boot/ && \
umount /boot && \
tar -cvzpf "$locate/$date/chroot.tar.gz" /chroot/ && \
tar -cvzpf "$locate/$date/etc.tar.gz" /etc/ && \
tar -cvzpf "$locate/$date/home.tar.gz" /home/ && \
tar -cvzpf "$locate/$date/lib.tar.gz" /lib/ && \
tar -cvzpf "$locate/$date/opt.tar.gz" /opt/ && \
tar -cvzpf "$locate/$date/root.tar.gz" /root/ && \
tar -cvzpf "$locate/$date/sbin.tar.gz" /sbin/ && \
tar -cvzpf "$locate/$date/service.tar.gz" /service/ && \
tar -cvzpf "$locate/$date/tmp.tar.gz" /tmp/ && \
tar -cvzpf "$locate/$date/usr.tar.gz" /usr/ && \
tar -cvzpf "$locate/$date/var.tar.gz" /var/ && \
tar -cvzpf "$locate/$date/dev.tar.gz" /dev/ && \
cd "$locate/" && \
tar -cvzpf "$date".tar.gz "$date" && \
chmod 777 "$locate/$date".tar.gz && \
rm -rf "$locate/$date"



da notare che il

locate="/mnt/Parcheggio2/[STEFANO]/[BACK-UP]"

andarà cambiato eh :)

Lo so .. lo so è una monata di script.. ma ripeto.. potrebbe servervire a qualcuno alle prime armi!
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Mon Jul 05, 2004 11:46 am    Post subject: Reply with quote

fatez wrote:
Lo so .. lo so è una monata di script.. ma ripeto.. potrebbe servervire a qualcuno alle prime armi!


In realtà non é una monata... perché con un paio di commenti permette di selezionare agevolmente le dir di cui fare il backup senza perdere troppo la testa!

Un consiglio: rinomina quella variabile $locate in qualcos'altro... usare variabili con lo stesso nome di comandi va a discapito della leggibilità ;-)
_________________
Ciao da me!
Back to top
View user's profile Send private message
marco86
Guru
Guru


Joined: 04 Jun 2004
Posts: 574
Location: /italy/torino/valli_di_Lanzo

PostPosted: Mon Jul 05, 2004 1:19 pm    Post subject: Reply with quote

è vero, non è malvagio! commentalo un pò di più! posso chiedere una cosa da vero n00b?
per fare unp script, come faccio?
mi creo un file con quale estensione? sarebbero come i vecchi *.bat di dos vero?
c'entra qualcosa il comando
Code:
touch nomescript
? mi serve per creare il file? non mi ricordo più, non è che conoscete un buon HOW-TO in italiando con un po di spiegazioni su come fare scipt, su come passargli i parametri ($1....)e cose del genere?
grazie, e scusate la mai ignoranza totale :oops: :oops:
_________________
Se il destino è contro di noi...bhe, peggio per lui....!!
Back to top
View user's profile Send private message
fatez
Apprentice
Apprentice


Joined: 07 May 2003
Posts: 295

PostPosted: Mon Jul 05, 2004 4:12 pm    Post subject: Reply with quote

ok :

allora, per prima cosa apri un text editor tipo nano:

nano Back-up

e ci pasti dentro questo :

Code:

date=`date +%d-%m-%Y`
locate="/mnt/Parcheggio2/[STEFANO]/[BACK-UP]"

mkdir "$locate/$date" && \
cd / && \
tar -cvzpf "$locate/$date/bin.tar.gz" /bin/ && \
mount /boot && \
tar -cvzpf "$locate/$date/boot.tar.gz" /boot/ && \
umount /boot && \
tar -cvzpf "$locate/$date/chroot.tar.gz" /chroot/ && \
tar -cvzpf "$locate/$date/etc.tar.gz" /etc/ && \
tar -cvzpf "$locate/$date/home.tar.gz" /home/ && \
tar -cvzpf "$locate/$date/lib.tar.gz" /lib/ && \
tar -cvzpf "$locate/$date/opt.tar.gz" /opt/ && \
tar -cvzpf "$locate/$date/root.tar.gz" /root/ && \
tar -cvzpf "$locate/$date/sbin.tar.gz" /sbin/ && \
tar -cvzpf "$locate/$date/service.tar.gz" /service/ && \
tar -cvzpf "$locate/$date/tmp.tar.gz" /tmp/ && \
tar -cvzpf "$locate/$date/usr.tar.gz" /usr/ && \
tar -cvzpf "$locate/$date/var.tar.gz" /var/ && \
tar -cvzpf "$locate/$date/dev.tar.gz" /dev/ && \
cd "$locate/" && \
tar -cvzpf "$date".tar.gz "$date" && \
chmod 777 "$locate/$date".tar.gz && \
rm -rf "$locate/$date"



poi fai un bel chmod 700 ./Back-up e lo esegui.
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Mon Jul 05, 2004 7:54 pm    Post subject: Reply with quote

[campanilismo mode on]
Seminario sul backup a webbit2004
[campanilismo mode off]
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Tue Jul 06, 2004 6:09 pm    Post subject: Reply with quote

Mi dispiace ritirare su questo post ormai esausto ma volevo sapere se quando metto --exclude =/proc , /sys, /tmp le directory suddette vengono ricreate automaticamente al primo utilizzo...
Per esempio se cancello tutta la / e ricopio sopra il mio backup le directory /proc , /sys, /tmp vengono ricreate da i programmi che le usano o devo farlo io? E se si come? Ci copio sopra uno stage della gentoo?

Nel caso sia tranquillo eliminare quelle dir eventualmente quali sono altre directory che posso tralasciare tranquillamente perchè si ricreano da sole e/o in modo automatico?
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Tue Jul 06, 2004 6:36 pm    Post subject: Reply with quote

Cazzantonio wrote:
Nel caso sia tranquillo eliminare quelle dir eventualmente quali sono altre directory che posso tralasciare tranquillamente perchè si ricreano da sole e/o in modo automatico?


/sys la devi creare tu, esattamente come /proc : d'altr'onde, durante l'installazione l'hai fatto, no ? ;-) per /tmp ..beh... idem !

Coda
Back to top
View user's profile Send private message
tuxer
Guru
Guru


Joined: 10 May 2004
Posts: 328

PostPosted: Tue Sep 07, 2004 2:04 pm    Post subject: Reply with quote

comunque consiglio (una volta testato per benino lo script) di togliere la verbosità, da micro-test che ho fatto ho visto che ci mette moooolto di più con -v!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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