실행 코드#!/bin/bash echo "data test " echo "data now : $(date +%Y%m%d) " echo "data now : $(date +%Y)년 $(date +%m)월 $(date +%d)일 " echo "$(date +%H) 시 $(date +%M) 분 $(date +%S) 초 입니다." NowDate=`date` echo $NowDate 실행 결과 data test data now : 20130220 data now : 2013년 02월 20일 18 시 49 분 14 초 입니다. 2013. 02. 20. (수) 18:49:14 KST
sudo rsync -va /mnt/hdd1/* rsync://sangyeop@192.168.10.4:1873/backupdsd기본 포트지만, 포트를 명시해주어야 연결이 가능하다. sudo rsync -va /mnt/hdd1/* rsync://user@192.168.xx.xx:1873/backup - 사용처매일 새로운 로그 파일이 생성되는 등 파일이 늘어나는 디렉토리를 효과적으로 백업하고 싶을 때 rsync 명령어는 이름처럼 파일을 동기화하는 명령어다.1. 복사할 때 원본과 대상의 차이를 바탕으로 갱신된 파일만 복사하므로 효율적이다.2. 파일 타임스탬프, 퍼미션, 소유자 정보 등 파일 속성을 그대로 복사할 수 있다.3. ssh를 써서 원격 서버에서도 복사할 수 있다. #rsync 사용법rsync [옵션]..
백업1. 권한획득, 루트로 이동 su cd /2.전체 시스템을 백업tar cvpzf backup.tgz.gz --exclude=/proc --exclude=/lost+found --exclude=/media \ --exclude=/backup.tgz --exclude=/mnt --exclude=/sys / –one-file-system 이 옵션은 다른 파일시스템으로 된 폴더는 백업하지 않는 것이다. 예를 들어 /mnt 등 이다.tar -cvpzf /home/backup/backup/backup.tar.gz --exclude=/home --one-file-system /
Configuring PHP¶If you don’t want to use the ownCloud .htaccess file, you may configure PHP instead. Make sure to comment out any lines .htaccess pertaining to upload size, if you entered any.To view your current PHP configuration and to see the location of your php.ini file, create a plain text file named phpinfo.php with just this single line of code in it: . Place this file in your Web root, ..
wget -O - http://shell.ninthgate.se/packages/shell.ninthgate.se.gpg.key | sudo apt-key add - echo "deb http://shell.ninthgate.se/packages/debian jessie main" | sudo tee -a /etc/apt/sources.list.d/plex.list sudo apt updateInstall the Plex Media Server on Ubuntu 16.x and latersudo apt install plexmediaserver -ySee if you can connect at http://ip.address:32400/web or http://ip.address:32400/manage/..
추가 settings.json 설정값 설명 (transmission 2.84) {“alt-speed-down”: 50, (default=50, Turtle mode 작동시 다운로드 속도.. KB/s 단위로 입력)“alt-speed-enabled”: false, (default=false, Turtle mode를 켜거나 끌 수 있다..Turtle mode란 자신이 정해둔 시간/날짜에 지정한 속도로 제한을 걸 수 있는 옵션이다)“alt-speed-time-begin”: 540, (default=540, Turtle mode 시작 시간을 설정.. 시간 입력시 기준은 00:00am이며 단위는 분 이다..디폴트 상태인 540은 12:00am으로부터 540분이 지났음을 의미한다..고로 9:00am가 시작 시간)“a..
하드디스크 마운트http://reachlab-kr.github.io/linux/2015/10/03/Ubuntu-fstab.html sudo blkidUUID 복사 /etc/fstab 에 다음 추가UUID=a3c11556-1e43-40b6-9978-a6cb70121b30 /mnt/HDD1 ext4 errors=remount-ro 0 1UUID=3AEC4E036614D26A /mnt/HDD2 ntfs errors=remount-ro 0 1 APM 설치 설정https://blog.xianchoi.kr/268 sudo apt-get install apache2sudo apt-get install mysqlsudo apt-get install phpsudo apt-get install libapache2-mod-..