Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUs7d-0002Zc-AM for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 13:24:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUs7c-00048f-8Z for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 13:24:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUs7c-00048Y-1A for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 13:24:00 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jUs7Y-0003aO-2r for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 13:23:57 +0000 Received: by mail-wm1-x336.google.com with SMTP id y24so3283406wma.4 for ; Sat, 02 May 2020 06:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=R45Jjib/afwS9VWoy3P8wikHcJRm5Tkfx0D2RcL6tq4=; b=FNinB0xAyaKpYbKLJBSKp+HdIyuSTaUGFSpCewvwIUESgOcSWGgwrtkS4NthTunsRk +CjbZC/o9u/0hHbochaRI7BNYjsqBiR20uNitX22SIEkRTWoggny6WnqEAwK7e0h2RGW SqbsfxR1r1yb/J8AGFKl+etvmI4bl6rhOZFIX/SniPw8YSpd3k+LjyefstD5uiDjSYPT gqBuB4QxSmw8WOxYVwiqRJGKOD8q0lVeq3ZdaEwhWymsn5xPvZo7XVeAD50nnDcp07U9 1DfyTYGhl/B8GuMmS5keg4xS8jN/48JOOp7slFTPvrh+R62b9Pk+q+m3IatnNpGK+Jzo rWUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=R45Jjib/afwS9VWoy3P8wikHcJRm5Tkfx0D2RcL6tq4=; b=M1Q3O5tkttY7kYzFN9J1tQDp6ZxmF5tCrHXsTOPRwakOkv8YjM3YmG24nbIepq/Wey oNltJFJv6epo9foNbGXHEY7lhiIqwJEDkRvG2G/VA4ag29cVMobzmW3TcwgzsNTJ6m0U QxOqBg7akFxNNbWXI1Gsl/wL8jEXs+GLQgcIuhDwUaK40/sG59/tbUhYhT7cOmH6VdKi T/uytS68LDukZx1/S6IJewaRP2DNXwNV9WSij+krBE93Kf+jhFogOKe68stXprSdMvEd LQQKC8MxAxiaobk0FfNIMIZVCzfW3VI4QgavdTA0fS9BsLvmXK4Fn9VRqBbGzkN3FePC wbCg== X-Gm-Message-State: AGi0PubxmDjffz6x/R+Ve9CFYSySY819YqgwDQM32UYWt0hVcaZ2j4lk BP9L0+9W2nY5EGnIe+k66jo= X-Google-Smtp-Source: APiQypLLeJ1h9orofrXKnoMz83DdaMddOU6obL5MGDfWovX+/0JspMFy1/jwPafjU+Jlh3Ti1QGD4w== X-Received: by 2002:a05:600c:2194:: with SMTP id e20mr4618444wme.22.1588425833938; Sat, 02 May 2020 06:23:53 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id 91sm10087584wra.37.2020.05.02.06.23.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 May 2020 06:23:53 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: How to move a 11.4 cluster to another Linux host, but empty? From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <20200502102329.GA14178@c720-r342378> Date: Sat, 2 May 2020 15:23:52 +0200 Cc: pgsql-general Content-Transfer-Encoding: quoted-printable Message-Id: <6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com> References: <20200501081029.GA3261@c720-r342378> <999AE92C-F74D-4399-8FE1-1DB80D08915D@gmail.com> <20200501083148.GA3595@c720-r342378> <20200502102329.GA14178@c720-r342378> To: Matthias Apitz X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Matthias, > On 02. May, 2020, at 12:23, Matthias Apitz wrote: > $ /usr/local/sisis-pap/pgsql/bin/pg_ctl -D /data/prosgresql11/data = initdb I don't get it. Is the setup now as follows /data/postgresql11 <=3D software with bin, lib64, share, etc... /data/postgresql11/data <=3D PGDATA or /usr/local/sisis-pap/pgsql <=3D software with bin, lib64, share, etc... /data/postgresql11/data <=3D PGDATA ? In the first case, your tar command would be: tar cvf /tmp/postgresql11.tar --exclude=3D/data/postgresql11/data = /data/postgresql11 Note that the --exclude option must appear BEFORE the directory tree to = archive in the command line! =3D> man tar In the second case, your tar command would be: tar cvf /tmp/postgresql11.tar /usr/local/sisis-pap/pgsql to package the software only without the database. Cheers, Paul=