<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>bash on ankit bahuguna</title>
    <link>https://ankitbahuguna.xyz/tags/bash/</link>
    <description>Recent content in bash on ankit bahuguna</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 25 Nov 2020 15:15:58 +0530</lastBuildDate>
    <atom:link href="https://ankitbahuguna.xyz/tags/bash/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Deploying Hugo With Rsync</title>
      <link>https://ankitbahuguna.xyz/posts/deploy-hugo-with-rsync/</link>
      <pubDate>Wed, 25 Nov 2020 15:15:58 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/deploy-hugo-with-rsync/</guid>
      <description>This is the script I use to deploy my Hugo website to Vultr.
#!/bin/sh USER=username HOST=hostip DIR=nginx-web-root-absolute-path hugo &amp;amp;&amp;amp; rsync -avz --delete public/ ${USER}@${HOST}:${DIR} exit 0 It requires that you have ssh access to the server you are trying to deploy to, and it also requires that the said server has rsync installed as well.
The key command here is rsync -avz source destination .
The -a option is a combination flag.</description>
    </item>
  </channel>
</rss>
