Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tar-split
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
tar-split
Commits
6318981a
Commit
6318981a
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
cdb11e0b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
extract
+1
-1
1 addition, 1 deletion
extract
generate
+2
-2
2 additions, 2 deletions
generate
next-volume
+0
-9
0 additions, 9 deletions
next-volume
tar-multi-volume-script
+1
-2
1 addition, 2 deletions
tar-multi-volume-script
with
4 additions
and
14 deletions
extract
+
1
−
1
View file @
6318981a
...
@@ -11,4 +11,4 @@ echo 1 >number
...
@@ -11,4 +11,4 @@ echo 1 >number
tar
-M
-F
'./tar-multi-volume-script x file'
-xf
file.tar 2>&-
tar
-M
-F
'./tar-multi-volume-script x file'
-xf
file.tar 2>&-
# remove a spurious file
# remove a spurious file
rm
file.tar
rm
file.tar
\ No newline at end of file
This diff is collapsed.
Click to expand it.
generate
+
2
−
2
View file @
6318981a
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
echo
1
>
number
echo
1
>
number
# multi-volume archive creation
# multi-volume archive creation
tar
-ML
20000
0
-F
'./tar-multi-volume-script c file'
-cf
file.tar
~/broadway/www/digiday/wp-content/uploads/
2>&-
tar
-ML
20000
-F
'./tar-multi-volume-script c file'
-cf
file.tar
"
$1
"
2>&-
# execute the "change-volume" script a last time
# execute the "change-volume" script a last time
./tar-multi-volume-script c file
./tar-multi-volume-script c file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
next-volume
deleted
100755 → 0
+
0
−
9
View file @
cdb11e0b
#!/bin/bash
prefix
=
"
$1
"
n
=
1
while
[[
-e
"
$prefix
-
$n
.tar"
]]
;
do
((
n++
))
done
mv
"
$prefix
.tar"
"
$prefix
-
$n
.tar"
echo
"
$prefix
-
$n
.tar"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tar-multi-volume-script
+
1
−
2
View file @
6318981a
...
@@ -5,10 +5,9 @@ mode="$1"
...
@@ -5,10 +5,9 @@ mode="$1"
prefix
=
"
$2
"
prefix
=
"
$2
"
n
=
$(
<number
)
n
=
$(
<number
)
case
$mode
in
case
$mode
in
c
)
mv
"
$prefix
.tar"
"
$prefix
-
$n
.tar"
;;
c
)
mv
"
$prefix
.tar"
"
$prefix
-
$n
.tar"
;;
x
)
cp
"
$prefix
-
$n
.tar"
"
$prefix
.tar"
;;
x
)
cp
"
$prefix
-
$n
.tar"
"
$prefix
.tar"
;;
esac
esac
echo
$((
n+1
))
>
number
echo
$((
n+1
))
>
number
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment