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-26 21:41:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1ba856de9492ef2d496e07a3953af35395cfa83b
1ba856de
1 parent
6d846278
create backup.sh
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
backup.sh
backup.sh
0 → 100644
View file @
1ba856d
#!/bin/bash
NAME
=
$(
date +%m%d%H%M
)
HOST
=
'User remote server ip'
USER
=
'User id'
FILE
=
$NAME
'.tar'
tar -cvzf
$NAME
.tar
*
sftp
$USER
@
$HOST
<< END_SCRIPT
put $FILE
quit
END_SCRIPT
exit
0
\ No newline at end of file
Please
register
or
login
to post a comment