Welcome! 登入 註冊
美寶首頁 美寶百科 美寶論壇 美寶落格 美寶地圖

Advanced

Change History

Message: Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP

Changed By: mepoadm
Change Date: February 28, 2019 10:55PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or

(2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 2GB (1/4 of the memory is a reasonable starting value)
work_mem = 25MB
effective_cache_size = 4GB ( 1/2 of total memory would be a normal setting)

Password File:
.pgpass

<h2>Web Server (Apache)</h2>
h2>Web Server (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.conf
/etc/apache2/vhost.conf/*.conf

(2) Modules:
vi /etc/sysconfig/apache
Add APACHE_MODUELS: php5, headers, rewrite
Set APACHE_SERVER_FLAGS="SSL"

(3) Remove manual directory:
mv /etc/apache2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>PHP</h2>
1. Install t<div style="background:#ddd;padding-left:1em">zypper install per insta,ll phppgsql,gbcurl php7-gb p,hp7-mbstring
php7-pgsql</div>
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
<div style="background:#ddd;padding-left:1em">short_open_tag = On
en_tag = On
output_handler = ob_gzhandler
memory_limit = 512M
upload_max_filesize = 8M
date.timenzone = 'Asia/Taipei'
session.cookie_secure = 1
session.cookie1
1</div>
y = 1</div>

<h2>c(1) ab</h2>
(1) Edit crontab
<div style="background:#ddd;padding-left:1em">cront(2) e</div>
(2) Add jobs
<div style="background:#ddd;paddin0 0 * * * ">0 0 * * * pg_dump -U postgres dataaaseyyyyMMdd$(date +\%Y\%m\%d\%H)%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https://help.ubuntu.com/community/DiskSpace

Database:
https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: February 28, 2019 08:55PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or

(2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 2GB (1/4 of the memory is a reasonable starting value)
work_mem = 25MB
effective_cache_size = 4GB ( 1/2 of total memory would be a normal setting)

Password File:
.pgpass

<h2>Web Server (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.conf
/etc/apache2/vhost.conf/*.conf

(2) Modules:
vi /etc/sysconfig/apache
Add APACHE_MODUELS: php5, headers, rewrite
Set APACHE_SERVER_FLAGS="SSL"

(3) Remove manual directory:
mv /etc/apache2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>PHP</h2>
1. Install tper insta,ll phppgsql,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
en_tag = On
output_handler = ob_gzhandler
memory_limit = 512M
upload_max_filesize = 8M
date.timenzone = 'Asia/Taipei'
session.cookie_secure = 1
session.cookie1
y = 1</div>

<h2>c
<div style="background:#ddd;padding-left:1em">crontab -e</div>
Add jobs
<div style="background:#ddd;padding-left:1em">pg_dump -U postgres database > databse_yyyyMMdd.sql</div>
d%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https://help.ubuntu.com/community/DiskSpace

Database:
https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: February 28, 2019 08:52PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or

(2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
rs = 2GB (1/4 of the memory is a reasonable starting value)
ting value)
work_mem = 25MB
effective_c512MB
4GB ( 1/2 of total memory would be a normal setting)
al setting)

Password File:
.pgpass

<h2>Web Server (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.conf
/etc/apache2/vhost.conf/*.conf

(2) Modules:
vi /etc/sysconfig/apache
Add APACHE_MODUELS: php5, headers, rewrite
Set APACHE_SERVER_FLAGS="SSL"

(3) Remove manual directory:
mv /etc/apache2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>PHP</h2>
1. Install tper insta,ll phppgsql,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
en_tag = On
output_handler = ob_gzhandler
memory_limit = 512M
upload_max_filesize = 8M
date.timenzone = 'Asia/Taipei'
session.cookie_secure = 1
session.cookie1
y = 1<(1) Edit crontab
<div style="background:#ddd;padding-left:1em">crontab -e</div>

(2) Add jobs
<div style="background:#ddd;padding-left:1em">pg_dump -U postgres database > database_yyyyMMdd.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/

Database:
https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: February 28, 2019 08:36PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or

(2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem = 25MB
effective_c512MB
al setting)

Password File:
.pgpass

<h2>Web Server (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.conf
/etc/apache2/vhost.conf/*.conf

(2) Modules:
vi /etc/sysconfig/apache
Add APACHE_MODUELS: php5, headers, rewrite
Set APACHE_SERVER_FLAGS="SSL"

(3) Remove manual directory:
mv /etc/apache2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>PHP</h2>
1. Install tper insta,ll phppgsql,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
en_tag = On
output_handler = ob_gzhandler
memory_limit = 512M
upload_max_filesize = 8M
date.timenzone = 'Asia/Taipei'
session.cookie_secure = 1
session.cookie1
y = 1<ntab
<div style="background:#ddd;padding-left:1em">crontab -e</div>

(2) Add jobs
<div style="background:#ddd;padding-left:1em">pg_dump -U postgres database > database_yyyyMMdd.sql</div>

.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: March 26, 2018 10:39PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or
(2) Tar
cd /
/
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem = 25MB
effective_c512MB
al setting)

Password File:
.pgpass

<h2>W(1) erver (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.c(2) /etc/apache2/vhost.conf/*.conf

(2To add php5, headers, rewrite

Remove manual directory:
Add APACHE_MODUELS: php5, headers, rewrite
Set APACHE_SERVER_FLAGS="SSL"

(3) Remove manual directory:
"SSL"

(3) Remove manual directory:
mv /etc/apache2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>57HP</h2>
1.57Install php7-mbstring, hppgsql,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
en_tagmemory_limit = 512M
= ob_gzhandler
memory_limemory_limit = 512M
mit = 512M
upload_max_filesize session.cookie_secure = 1
a/Taipei'
session.cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: March 26, 2018 04:35PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or (2)
Tar:
cd /
d /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem = 25MB
effective_c512MB
al setting)

Password File:
.pgpass

<h2>Werver (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.c/etc/apache2/vhost.conf/*.conf

(2Theaders, 5, headers, rewrite

Remove manual directory:
"SSL"

(3) Remove manual directory:
mv /etc/apache2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
1.5Install hppgsql,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
en_tag = ob_gzhandler
memory_limemory_limit = 512M
mit = 512M
upload_max_filesize a/Taipei'
session.cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: July 27, 2015 01:05PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or (2)
Tar:
cd /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem = 25MB
effective_c512MB
al setting)

Password File:
.pgpass

<h2>Werver (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.c/etc/apache2/vhost.conf/*.conf

(2T5, headerl directory:
mv /etc/apache2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

he2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
1.5Install hppgsql,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
en_tag = ob_gzhandler
memory_limemory_limit = 512M
mit = 512M
upload_max_filesize a/Taipei'
session.cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: July 27, 2015 12:59PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or (2)
Tar:
cd /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem = 25MB
effective_c512MB
al setting)

Password File:
.pgpass

<h2>Werver (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.c/etc/apache2/vhost.conf/*.conf

(2T5, headerhe2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2cli,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = On
en_tag = ob_gzhandler
memory_limemory_limit = session.cookie_httponly = 1
session.cookie_secure = 1
cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: June 29, 2015 10:29PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or (2)
Tar:
cd /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem = 25MB
effective_c512MB
al setting)

Password File:
.pgpass

<h2>Werver (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/apache2/*.c/etc/apache2/vhost.conf/*.conf

(2T5, headerhe2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag = 512M
tag = ob_gzhandler
memory_limemory_limit = cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: June 28, 2015 10:59PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or (2)
Tar:
cd /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem =e:
.pgpass

ive_c512MB
al setting)

Password File:
.pgpass

<h2>Werver (Apache)</h2>
pache)</h2>
(1) Configuration:
/etc/etc/sysconfig/apache
To add php5, rewrite

<h2>PHP</h2>
e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag tag = ob_gzhandler
memory_limemory_limit = cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: June 06, 2015 03:32AM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
(1) rsync
Transfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or (2)
Tar:
cd /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem =<h2>er (c512MB)al setConfiguration:
/etc/apache2/*.conf
/etc/apache2/vhost.conf/*.conf
>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag tag = ob_gzhandler
memory_limemory_limit = cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: June 05, 2015 10:11AM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
ansfer a certain user folder:<pre>rsync -av /home/user/ account@domain:/home/user/</pre>
Or (2)
pre>
Or (2)
Tar:
cd /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shared_buffers = 512MB
ting value)
work_mem =<h2>c512MBal set>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag tag = ob_gzhandler
memory_limemory_limit = cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: June 04, 2015 05:33PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
pre>
Or (2)
Tar:
cd /
2) Tar
cd /
2) Tar
cd /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shache_size = 512MB
MB
ting value)
work_mem =<h2>c512MBal set>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag tag = ob_gzhandler
memory_limemory_limit = cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: June 04, 2015 05:24PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
pre>
Or (2tar -czvpf /a)
Tar:
cd /
2) Tar
cd /
2) Tar
.gz d /
tar -cvpf /archive_folter/home-YYYYMMDD.tar home --exclude=home/e-xz-xlude_foler

Untar:
cd.gz

/destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shaMB
ting value)
work_mem =<h2>c512MBal set>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag tag = ob_gzhandler
memory_limemory_limit = cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: June 04, 2015 04:51PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
r -czvpf /archive_folter/home-YYYYMMDD.tar.gz home --exclude=home/exclude_foler

Untar:
cd /destination_folder
tar -xzvpf home-YYYYMMDD.tar.gz
ntar:
cd.gz
/destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

Config:
shaMB
ting value)
work_mem =<h2>c512MBal set>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit php.ini (/etc/php5/c
short_open_tag tag = ob_gzhandler
memory_limemory_limit = cookie_secsession.cookie_secure = 1
ure = 1
session.cookie1
y = 1<.sql</div>
/div>

<h2>cd%Y\%m\%d\%H).sql</div>

<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: May 23, 2015 04:14PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account
./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.
./etc/group - File - defines the groups to which users belong
./etc/gshadow - group shadow file (contains the encrypted password for group)
./var/spool/mail - Generally user emails are stored here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
ntar:
cd.gz
/destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgr<h2>Apache<es postgres

Config:
shaMB
ting value)
work_mem =<h2>c512MBal set>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit p
References:

http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/ (User accounts)
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine (User accounts)
<h2>References</h2>
User Accounts:
http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https://help.ubuntu.com/community/DiskSpace
ate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: May 23, 2015 04:11PM

Backup and Transfer a LAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand. We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account

./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.

./etc/shadow - File - contains the encrypted password (and aginnformation for user's accounts.
./etc/group - File - defines the groups to which users belong
ong
./etc/gshadow - group shadow file (contains the encrypted password for group
./var/spool/mail - Generally user emails are stored here.

var/spool/mail - Generally user emails are stored here.
here.
./home - All Users data is stored here.</xmp>

Do remember to "preserve (-p)" file info (permisions, owner, etc) in the transfer. <b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
ntar:
cd.gz
/destination_folder
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>
Backup (export):
Shell> pg_dumpall -U postgres | bzip2 > cluster_YYYYMMDD.bz2

Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (impnfig:
shared_buffers = 512MB
work_mem = 25MB
gr<h2>Apache<es postgres

Config:
shaMB
ting value)
work_mem =<h2>c512MBal set>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit p
References:

http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/ (User accounts)
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine (User accounts)ate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: August 14, 2013 04:24PM

Backup and Transfer a Linux WebLAMP(LAPP) System: Linux/Apache2/PostgreSQL/PHP
Assume we have an installed Linux system on hand.
We have six parts to transfer: (1) User accounts; (2) User files (/home); (3) Database; (4) Apache; (5) PHP; and (6) crontab.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

<xmp>./etc/passwd - File - contains various pieces of information for each user account

./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.

./etc/shadow - File - contains the encrypted password (and aginong
./etc/gshadow - group shadow file (contains the encrypted password for group
./var/spool/mail - Generally user emails are stored here.

here.
./home - All Users data is stored here.Do remember thetoxmp>

Do r" (-p)" to "preserve (-p)" file info (permisions, owner, e
<b>Do not copy-and-paste the passwd/shadow files directly.</b> It's recommended to only attach the human-added users into the new system user account files.

<h2>User Files (/home)</h2>
Files (/home)</h2>
ntar:
cd.gz

Backup (export):
er
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQL)</h2>Transfer (scp) and unzip (bzip2 -d) the database cluster file.

Restore (import):
Shell> psql -f cluster_YYYYMMDD -U postgres postgres

<h2>Apache</h2>
(impgr<h2>Apache<es postgres

Config:
shaMB
ting value)
work_mem =<h2>c512MBal set>
(1) Configuration:
/etc/e2/conf.d/manual.conf /etc/apache2/conf.d/manual.conf.ori

<h2>5HP</h2>
2. Edit php.1.5Install hppgapache2,curl php7-gb p,hp7-mbstring
pgsql</div>

2. Edit p
References:

http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/ (User accounts)
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine (User accounts)ate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server
Changed By: mepoadm
Change Date: August 12, 2013 11:01PM

Backup and Transfer a Linux Web System
Assume we have an installed Linux system on hand.
<h2>User accounts</h2>
Copy and transfer the following user-related files and directories:

./etc/passwd - File - contains various pieces of information for each user account

./etc/shadow - File - contains the encrypted password information for user's accounts and optional the password aging information.
<xmp>./etc/passwd - File - contains various pieces of information for each user account

./etc/shadow - File - contains the encrypted password (and aging) information for user's accounts.

./etc/shadow - File - contains the encrypted password (and aginong
./etc/gshadow - group shadow file (contains the encrypted password for group
./var/spool/mail - Generally user emails are stored here../home
here.
./home - All Users data i
</xmp>
d here.Do remember thexmp>

Do r" to "preserve (-p)" file info (permisions, owner, e
Files (/home)</h2>
ntar:
cd.gz

er
tar -xvpf home-YYYYMMDD.tar

<h2>Database (PostgreSQ
<h2>PHP</h2>

1. Install the modules:
php5-curl, php5-pgsql, php-openssl

2. Edit php.ini (/etc/php5/apache2/php.ini)

short_open_tag = On
output_handler = ob_gzhandler
upload_max_filesize = 8M
date.timezone = 'Asian/Taipei'
php7-gb p,hp7-mbstring
pgsql</div>

2. Edit p
References:

http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/ (User accounts)
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine (User accounts)ate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server

Original Message

作者: mepoadm
Date: August 09, 2013 11:30PM

Backup and Transfer a Linux Web System
Assume we have an installed Linux system on hand.

User accounts


Copy and transfer the following user-related files and directories:

./etc/passwd - File - contains various pieces of information for each user account

./etc/shadow - File - contains the encrypted password information for user's accounts and optional the password aging information.

./etc/shadow - File - contains the encrypted password (and aginong
./etc/gshadow - group shadow file (contains the encrypted password for group
./var/spool/mail - Generally user emails are stored here../home
here.
./home - All Users data i
d here.Do remember thexmp>

Do r" to "preserve (-p)" file info (permisions, owner, e
Files (/home)
ntar:
cd.gz

er
tar -xvpf home-YYYYMMDD.tar

Database (PostgreSQ php7-gb p,hp7-mbstring
pgsql



2. Edit p
References:

http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/ (User accounts)
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine (User accounts)ate-user-accounts-old-to-new-server/
http://serverfault.com/questions/19274/how-to-transfer-user-accounts-to-a-new-linux-machine

Disk Partitioning:
https:/g/wiki/Tuning_Your_PostgreSQL_Server