Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Junyoung Jung
/
Unix_System_Programming_autobackup
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Junyoung Jung
2016-10-27 17:31:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8bc2265118d8b3bc7ac50cb15b4105e57d6ebe6f
8bc22651
1 parent
ec1b5ead
Update backup.sh
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
backup.sh
backup.sh
View file @
8bc2265
...
...
@@ -2,8 +2,8 @@
NAME
=
$(
date +%y%m%d
)
HOST
=
'
User remote server ip
'
USER
=
'
User id
'
HOST
=
'
celinux2.khu.ac.kr
'
USER
=
'
usp33
'
FILE
=
$NAME
'.tar'
MakeTarFile
()
{
...
...
@@ -11,7 +11,7 @@ MakeTarFile() {
}
ConnectSFTP
()
{
sftp
$USER
@
$HOST
<< END_SCRIPT
sftp
$USER
@
$HOST
2> /dev/null
<< END_SCRIPT
put $FILE
quit
END_SCRIPT
...
...
@@ -19,8 +19,8 @@ END_SCRIPT
for
i
in
{
0..75..3
}
do
MakeTarFile
ConnectSFTP
MakeTarFile
> /dev/null
ConnectSFTP
> /dev/null
rm
$FILE
sleep 3m
...
...
Please
register
or
login
to post a comment