Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scripts-perso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daniel Stan
scripts-perso
Commits
f708ce47
Commit
f708ce47
authored
Dec 09, 2016
by
Daniel STAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abort si parent vide
parent
6d79d2d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
backup-recv
backup-recv
+5
-2
No files found.
backup-recv
View file @
f708ce47
...
...
@@ -37,12 +37,15 @@ elif [ "$1" = "incsend" ]; then
SNAP
=
`
available_local |
sort
|
tail
-n
1
`
echo
"Trying to send last snap
$SNAP
"
PARENT
=
`
available_common |
sort
|
tail
-n
1
`
echo
"Parent
$PARENT
"
read
-p
"[press enter to continue]"
if
[
"
$PARENT
"
=
"
$SNAP
"
]
;
then
echo
"Parent and Snap coincide ! Already sent ! Aborting"
exit
1
elif
[
"
$PARENT
"
=
""
]
;
then
echo
"No common parent. Please send a full backup"
exit
2
fi
echo
"Parent
$PARENT
"
read
-p
"[press enter to continue]"
btrfs_send
-p
$FS_DIR
/
$BACK_DIR
/
$PARENT
$FS_DIR
/
$BACK_DIR
/
$SNAP
|
$REMOTE
receive
$SNAP
$PARENT
elif
[
"
$1
"
=
"receive"
]
;
then
btrfs receive
$FS_DIR
/
$BACK_DIR
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment