Skip to content

Commit

Permalink
Remove owner from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed Jun 8, 2021
1 parent 5b0027d commit 7eec093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postgresql-setup.sh
Expand Up @@ -126,7 +126,7 @@ function create_snapshot {
ledger_file=$2
tmp_dir=$(mktemp --directory -t db-sync-snapshot-XXXXXXXXXX)
echo $"Working directory: ${tmp_dir}"
pg_dump "${databasename}" > "${tmp_dir}/$1.sql"
pg_dump --no-owner "${databasename}" > "${tmp_dir}/$1.sql"
cp "$ledger_file" "$tmp_dir/$(basename "${ledger_file}")"
tar zcvf "${tgz_file}" --directory "${tmp_dir}" "${dbfile}" "$(basename "${ledger_file}")"
rm -rf "${tmp_dir}"
Expand Down

0 comments on commit 7eec093

Please sign in to comment.