Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
84d9a7dc
Commit
84d9a7dc
authored
Jul 19, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add backup_podman_a01_images.sh
parent
f1132777
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
backup_podman_a01_images.sh
vz/azbyka/backup_podman_a01_images.sh
+15
-0
backup_podman_a02_images.sh
vz/azbyka/backup_podman_a02_images.sh
+15
-0
No files found.
vz/azbyka/backup_podman_a01_images.sh
0 → 100755
View file @
84d9a7dc
#!/bin/sh
DIR
=
/var/local/backup/a01/podman-images
remote_save
()
{
ssh a02
tee
"
$1
"
>
/dev/null
}
mkdir
-p
$DIR
podman images | remote_save
$DIR
/images.list
for
id
in
$(
docker images
-q
)
;
do
podman save
$id
| remote_save
$DIR
/
$id
.image
done
vz/azbyka/backup_podman_a02_images.sh
0 → 100755
View file @
84d9a7dc
#!/bin/sh
DIR
=
/var/local/backup/a01/podman-images
remote_save
()
{
cat
>
"
$1
"
}
mkdir
-p
$DIR
podman images | remote_save
$DIR
/images.list
for
id
in
$(
docker images
-q
)
;
do
podman save
$id
| remote_save
$DIR
/
$id
.image
done
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