نمایش نتایج: از شماره 1 تا 8 , از مجموع 8

موضوع: چطور از IBSng بک آپ بگیریم؟

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #2
    عضو دائم Rezash آواتار ها
    تاریخ عضویت
    Feb 2010
    محل سکونت
    مشهد
    نوشته ها
    1,923
    تشکر تشکر کرده 
    889
    تشکر تشکر شده 
    2,385
    تشکر شده در
    1,535 پست

    پیش فرض پاسخ : چطور از IBSng بک آپ بگیریم؟

    to Backup

    pg_dump -hYourDBServer -u IBSng > IBSng.20070212.pg_dump

    To Restore

    psql IBSng < IBSng.20070212.pg_dump

    Or This one :

    To Backup

    pg_dump -U YourDBServer -W IBSng -U ibs > /tmp/IBSngbackup.sql
    enter password
    the command will generate a file called /tmp/IBSngbackup.sql

    Restore :

    recreate the IBSng (or use another name) database following the standard procedure:

    su - postgres
    psql template1 YourDBServer
    create database IBSng with encoding='UNICODE';
    \c IBSng YourDBServer
    \i /tmp/IBSngbackup.sql

    you may see too many errors called the 'already exist' msgs ... all the existing values will be ignore and your values will create on the specified places ...

    this is backup/restore outputs on localhost :

    [morteza@localhost ~]$ su -
    Password:
    [root@localhost ~]# pg_dump -W IBSng -U ibs > /tmp/IBSngbackup.sql
    Password:
    You have new mail in /var/spool/mail/root
    [root@localhost ~]# su - postgres
    -bash-3.00$ psql template1
    Welcome to psql 8.0.3, the PostgreSQL interactive terminal.

    Type: \copyright for distribution terms
    \h for help with SQL commands
    \? for help with psql commands
    \g or terminate with semicolon to execute query
    \q to quit

    template1=# \c IBSng
    You are now connected to database "IBSng".
    IBSng=# /i /tmp/IBSngbackup.sql
    <here will show too many errors> be patient
    all things are okay !
    IBSng-# \q
    -bash-3.00$ exit
    logout
    You have new mail in /var/spool/mail/root
    [root@localhost ~]#

    Have fun
    منبع : back up from IBSng database
    بک آپ بگیرید قبل از آنکه پشیمان شوید!
    تشخیص سیستم مدیریت محتوای سایت - سایت شخصی

  2. تعداد تشکر ها از Rezash به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 0
    آخرين نوشته: October 9th, 2017, 22:34
  2. پاسخ ها: 0
    آخرين نوشته: January 27th, 2015, 13:37
  3. assign IP to user on IBSng / اختصاص دادن آی پی به کاربر در IBSng
    توسط master_vpn در انجمن اسکریپت های دیگر
    پاسخ ها: 11
    آخرين نوشته: February 14th, 2013, 22:18

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •