-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrestore-machine
executable file
·55 lines (41 loc) · 1.55 KB
/
restore-machine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# run as user
#
# To do: check the network and select the backup location
# appropriate for the location.
#
archivemachine=home.reetstreet.com
archivepath=/archive/$USER/`uname -n`-recent
#
# To do: set path
#
host=`uname -n`
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#
# G E T D O C U M E N T S A N D D A T A
#
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#
# If there is no $HOME/bin directory, take that as
# an indication that we need to get our backup data
# from an appropriate nearby source.
#
if [ ! -d $HOME/bin ] ; then
rsync -rCultvz $USER@$archivemachine:/home/$USER/bin $HOME
konsole -e $HOME/bin/syncwith $USER@$archivemachine &
#konsole -e rsync -rCultvz $USER@$archivemachine:$archivepath/ $HOME
fi
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#
# I N S T A L L O T H E R C O M P O N E N T S
#
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#
# Install additional packages
#
#sudo $HOME/bin/install-components
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#
# B A C K U P S a n d C R O N a n d w h a t n o t
#
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#sudo $HOME/bin/configure-backups